Nevron Forum

Images for shapes

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

By Luis Mendes - Thursday, April 22, 2010

Is there a way a user can load images from their local machines and use them as shapes on the diagram? Thanks all.
By Nevron Support - Friday, April 23, 2010

Hi,

You can put an image in any shape by filling the shape with an image fill style. For example:

NShape shape = new NRectangleShape(10, 10, 150, 100);
document.ActiveLayer.AddChild(shape);
NStyle.SetFillStyle(shape, new NImageFillStyle(imageFileName));

For more information on styles and style composition take a look at the online documentation.