Shape.ToImage throws “Object reference not set to an instance of an object” exception for some shapes in the attached diagram although
Diagram.Save can successfully convert the diagram to an image.
ToImage.zip (36.4 KB)
We were able to replicate the issue in our environment while using Aspose.Diagram for .NET 19.9 and have logged it as DIAGRAMNET-51716 in our issue tracking system for the sake of correction. We will further look into it and keep you posted with the status of its resolution. Please spare us little time.
We are sorry for the inconvenience.