Hello,
I am using aspose.diagram v6.7.0 to generate PNG of pages of the attached visio file. In the PNG output, text color and color of callouts is incorrect.
Following code is used to generate the PNG output:
Diagram diagram = new Diagram("callouts11.vsdx");
String pageName = "Page-1";
Page srcPage = diagram.getPages().getPage(pageName);
File outputFile = new File("Page-1.png");
int imageFormat = SaveFileFormat.PNG;
int pageIndex = 0;
ImageSaveOptions options = new ImageSaveOptions(imageFormat);
options.setResolution(96);
for (Page page : (Iterable) diagram.getPages()) {
if (page.getID() == srcPage.getID()) {
options.setPageIndex(pageIndex);
options.setPageCount(1);
break;
}
pageIndex++;
}
diagram.save(outputFile.getAbsolutePath(), options);
Can you please analyse this issue.
Thanks,
Neha