| 
Rank: Advanced Member
 Groups: Guest
Joined: 9/10/2010(UTC)
 Posts: 57
 
 Thanks: 1 times
 | 
            
	      
                Hello What are simple ways to draw a rectangle with rounded corners, using RectangleVObject? Thanks. mzhao attached the following image(s): | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
         
		   
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
Joined: 5/29/2010(UTC)
 Posts: 1,310
 
 Thanks: 8 timesWas thanked: 111 time(s) in 111 post(s)
 
 | 
            
	      
                Hello,
 Unfortunately it is not possible to make a rectangle with rounded corners.
 | 
| Best regards, Dmitry Obukhov
 Technical Support. Aurigma, Inc.
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
		
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
Joined: 9/10/2010(UTC)
 Posts: 57
 
 Thanks: 1 times
 | 
            
	      
                public RoundRectangleVObject(System.Drawing.RectangleF r, int d): base("roundrectangle")
 {
 
 // d = size of rounded corner
 _path = new System.Drawing.Drawing2D.GraphicsPath();
 _path.StartFigure();
 _path.AddArc(r.X, r.Y, d, d, 180, 90);
 _path.AddArc(r.X + r.Width - d, r.Y, d, d, 270, 90);
 _path.AddArc(r.X + +r.Width - d, r.Y + r.Height-d, d, d, 360, 90);
 _path.AddArc(r.X, r.Y + r.Height-d, d, d, 90, 90);
 
 _path.CloseFigure();
 }
 
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
    
        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.