I’m Trying to add png image to diagram. But I receive just image with white background.
static void Main(string[] args)
{
Aspose.Diagram.License lic = new Aspose.Diagram.License();
lic.SetLicense("Conholdate.Total.NET.lic");
Diagram diagram = new Diagram("input.vsd");
Page page0 = diagram.Pages[1];
double pinX = 3, pinY = 3, width = 4, hieght = 4;
using (FileStream fs = new FileStream(@"C:\Users\HYSTOU\source\repos\ConsoleApp6\ConsoleApp6\bin\Debug\tmp.png", FileMode.Open)) {
page0.AddShape(pinX, pinY, width, hieght, fs);
}
diagram.Save("InsertImageInVisio_Out.vsdx", SaveFileFormat.VSDX);
}
tmp.png (233.9 KB)Diagrams.zip (409.9 KB)