Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Noufal123  
#1 Posted : Tuesday, April 19, 2011 11:00:46 PM(UTC)
Noufal123

Rank: Advanced Member

Groups: Member
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

Dmitry.Obukhov  
#2 Posted : Thursday, April 21, 2011 3:50:00 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
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.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
Noufal123 on 4/21/2011(UTC)
Users browsing this topic
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.