Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Fill Color when Drawing ShapeTemplate (Read 1584 times)
grayhound
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Nov 8th, 2006
Fill Color when Drawing ShapeTemplate
Apr 27th, 2007 at 4:29am
Print Post  


can i fill the color in the small circle?
Code
Select All
		 ShapeTemplate myShape = new ShapeTemplate(
		    new ElementTemplate[] {
			  new ArcTemplate(0, 0, 100, 100, 0, 360),
			  new ArcTemplate(30, 30, 40, 40, 0, 360)
		    },
		    new ElementTemplate[] { },
		    null,FillMode.Winding, "MyShape");  

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Fill Color when Drawing ShapeTemplate
Reply #1 - Apr 27th, 2007 at 4:53am
Print Post  
The Box.Brush/FillColor will be used to fill both circles. You could use custom drawing to draw a second circle in a standard "Ellipse" shape. Set the CustomDraw property to Additional, and in the DrawBox event handler call e.Graphics.FillEllipse.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint