Nevron Forum

Can I make a diagram embed the images used in fill style?

https://www.nevron.com/Forum/Topic6385.aspx

By Jason Irby - Thursday, May 10, 2012

 

Say I create a digram with a rectangle and set the fill style to image, select an image and save.

I want the fill image to actually be embedded in the digram file.  It appears to only be referenced by path. 

I can see this clearly when saving in xml format.  I expected it would at least embed when saved in binary format but I guess it is still only by reference.  If I save as binary and delete the original image, the fill rectagle come up blank when reopening. 

I'd like the diagram I make to be fully self contained in its own file.

Can I set a property somewhere?

Thank in advance,

Jason Irby

 

By Nevron Support - Thursday, May 10, 2012

Hi,

You should create the image fill style using its bitmap constructor rather than the file name constructor (i.e. you shoul supply a bitmap object instead of file name to the image fill style constructor). In this way the image will be embedded in your document upon serialization.

By Jason Irby - Thursday, May 10, 2012

Ah.  I was just trying it thru the sample diagramming tool.  My bad.

 

Thanks,

Jason Irby