Profile Picture

Add An Image And Resize

Posted By Ashley Davy 12 Years Ago
Author
Message
Nevron Support
Posted 12 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 Ashley,

You are unable to resize because you are creating a path. Instead, you should create a rectangle shape (or other shape) which has handles by default.
The following KB topic has been updated: Display images in the diagram

Best Regards,
Nevron Support Team



Ashley Davy
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 36, Visits: 119

Thank you for your reply but I do not think it answers my question.  After the image is added to the drawing surface how can the end user grab the image and move it around?  If a rectangle is added to the drawing surface you can select it and move it.  How can I do the same with an image?

Thanks,

Ashley



Nevron Support
Posted 12 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 control the way the image is rendered with the TextureMappingStyle.MapLayout property of the image fill style. Check out this documentation topic for a list of the supported values.



Best Regards,
Nevron Support Team



Ashley Davy
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 36, Visits: 119

How do I add an image and then allow the end user to grab the image and resize it?  I used the sample code below and the image was added to the viewer but I was not able to select the image and resize it.  Is there a way that i can accomplished this.

Dim path As New NRectanglePath(0, 0, 100, 100)
path.Style = New NStyle()
path.Style.FillStyle = New NImageFillStyle("c:\Temp\SomeImage.bmp")
nDrawingDocument1.ActiveLayer.AddChild(path)
 
Thanks,
Ashley




Similar Topics


Reading This Topic