Profile Picture

Images for shapes

Posted By Luis Mendes 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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.



Best Regards,
Nevron Support Team



Luis Mendes
Posted 14 Years Ago
View Quick Profile
Forum Member

Forum Member (25 reputation)Forum Member (25 reputation)Forum Member (25 reputation)Forum Member (25 reputation)Forum Member (25 reputation)Forum Member (25 reputation)Forum Member (25 reputation)Forum Member (25 reputation)Forum Member (25 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 25, Visits: 1
Is there a way a user can load images from their local machines and use them as shapes on the diagram? Thanks all.



Similar Topics


Reading This Topic