We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set image in a shape


I cant figure out how to set a background image from a jpg file onto a shape.

In my original Visio, I have included a picture and have laoded an image.
At run time, I am loading this Visio now and want to replace the image with another image.
I have spent lots of time on this, but cnat figure our how to do this.

any ideas ?

thanks for this great product

I finally found the solution :

shape.ForeignData.Value = System.IO.File.ReadAllBytes(file)

thanks anyway
Hi Guido,

Thank you for updating us. It is nice to hear from you that you managed it. Please feel free to reply us if you have any other question regarding Aspose APIs, we will be happy to help you.