Shape.ToImage renders incorreect images for resized/rotated Visio shapes


#1

Shape.ToImage renders incorreect images for resized/rotated Visio shapes

var path = @"d:\test";
var diagram = new Diagram(Path.Combine(path, "Sample1.vsdx"));

ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.PNG);
foreach (Shape shape in diagram.Pages[0].Shapes)
{
    shape.ToImage(Path.Combine(path, $"shape{shape.ID}.{options.SaveFormat}"), options);
}

IncorrectImages.zip (38.8 KB)


#2

@dmbk

Thanks for contacting support.

We were able to replicate the issue in our environment and logged it as DIAGRAMNET-51556 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.


#3

@dmbk

We would like to share with you that your issue has been fixed and its fix is available in hotfix version of the API Aspose.Diagram for .NET 18.10.1. Please use shared assembly of the API and in case you still face any issue, please feel free to let us know.


#4

I have tried 18.10.1 version. Some saved images are good but some images are empty sample2.zip (28.2 KB)


#5

@dmbk

Thanks for your feedback.

We have logged a separate issue as DIAGRAMNET-51570 in our issue tracking system for your other files. We will let you know in case of further updates regarding resolution of the issue, please be patient and spare us little time.

We are sorry for the inconvenience.


#6

The issues you have found earlier (filed as DIAGRAMNET-51556,DIAGRAMNET-51570) have been fixed in Aspose.Diagram for .NET 18.11.