This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
Noufal123  
#1 Posted : 14 years ago
Noufal123

Rank: Advanced Member

Groups: Guest
Joined: 3/29/2010(UTC)
Posts: 81

Thanks: 10 times
Hello.. Can i set multilayerviewer objects(rectangle,ellips,polygon) fill color as gradient color as default when its drawing in multilayer or adding in multilayerviewer? pls help me soon....

Edited by user 14 years ago  | Reason: Not specified

Dmitry.Obukhov  
#2 Posted : 14 years ago
Dmitry.Obukhov

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,

Please read the Set gradient color in multilayer objects topic.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Noufal123  
#3 Posted : 14 years ago
Noufal123

Rank: Advanced Member

Groups: Guest
Joined: 3/29/2010(UTC)
Posts: 81

Thanks: 10 times
Hello... I have to set Gradient color as default color when adding the designer in multilayer viewer... i have used the codes

Aurigma.GraphicsMill.WinControls.IDesigner designer=new Aurigma.GraphicsMill.WinControls.RectangleVObjectCreateDesigner();

Aurigma.GraphicsMill.WinControls.PathVObjectCreateDesigner obj = (Aurigma.GraphicsMill.WinControls.PathVObjectCreateDesigner)designer;

obj.Brush = new System.Drawing.Drawing2D.LinearGradientBrush(new Rectangle(Convert.ToInt32(obj1.VObjects[0].GetVObjectBounds().X), Convert.ToInt32(obj1.VObjects[0].GetVObjectBounds().Y), Convert.ToInt32(obj1.VObjects[0].GetVObjectBounds().Width), Convert.ToInt32(obj1.VObjects[0].GetVObjectBounds().Height)),System.Drawing.Color.Red,System.Drawing.Color.Green,180);

MultiLayeViewer.CurrentDesigner = designer;

its making error with rectangle.. I have given values for rectangle, its working good..but i need the objects width and height to set the rectangle to produce correct gradient Brush.. please give me a solution to do it...

Edited by user 14 years ago  | Reason: Not specified

Alex Kon  
#4 Posted : 14 years ago
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello,

Please could you describe your task in more detail? As I understand you need gradient fill in Rectangle designer, but you got some error? Which one? And what width/height do you need? Of newly created object or...?

Users browsing this topic
Guest
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.