Images for shapes


Author
Message
Luis Mendes
Luis Mendes
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
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.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search