Rank: Advanced Member
Groups: Guest
Joined: 3/29/2010(UTC) Posts: 81
Thanks: 10 times
|
Hello... How can i resize added objects (Rectangle , Ellips .line and polyline) in multilayerviewer using C# code? pls help me soon.. Edited by user Thursday, April 21, 2011 1:55:05 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello, Vector objects do not have Resize method. You need to use Scale one, e.g.: Code:Aurigma.GraphicsMill.WinControls.RectangleVObject rectangle = new
Aurigma.GraphicsMill.WinControls.RectangleVObject(0F, 0F, multiLayerViewer1.WorkspaceWidth, multiLayerViewer1.WorkspaceHeight);
//Modify stroke and fill parameters
rectangle.Pen = new System.Drawing.Pen(System.Drawing.Color.BlanchedAlmond, 10F);
rectangle.Brush = new System.Drawing.SolidBrush(System.Drawing.Color.Wheat);
//Scale rectangle vector object
rectangle.Transform.Scale(0.1f, 0.1f);
|
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
1 user thanked Dmitry.Obukhov for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.