Add An Image And Resize


Author
Message
Ashley Davy
Ashley Davy
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
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

Reply
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 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


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