Aurigma Forums
 » 
Graphics Mill
 » 
Discussions – Graphics Mill
 » 
set gradient color as default color in multilayer viewer
 
		
        
            
            
	
    | 
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 Wednesday, March 23, 2011 7:50:01 PM(UTC)
 | Reason: Not specified | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
         
		   
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
Joined: 5/29/2010(UTC)
 Posts: 1,310
 
 Thanks: 8 timesWas thanked: 111 time(s) in 111 post(s)
 
 |  | 
| Best regards, Dmitry Obukhov
 Technical Support. Aurigma, Inc.
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
		
        
            
            
	
    | 
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 codesAurigma.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 Tuesday, March 29, 2011 9:38:19 PM(UTC)
 | Reason: Not specified | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
         
		   
        
            
            
	
    | 
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...?
 
 
 | 
|  | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
Aurigma Forums
 » 
Graphics Mill
 » 
Discussions – Graphics Mill
 » 
set gradient color as default color in multilayer viewer
 
    
        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.