Click here to Skip to main content
14,300,217 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi,

i need to draw a Polygon using DrawingContext.iam using VS-2010 i think
in previous version we have DrawingContext.drawPolygon() method. in
VisualStudio:2010 there is no method.how can i draw it.please send a sample

visual = new DrawingVisual();
 DrawingContext  drawingContext = visual.RenderOpen();



Regards,
sajith
Posted
Comments
Ravi Sant 3-Feb-12 3:38am
   
use Use dc.DrawGeometry()
eg: http://stackoverflow.com/questions/4732869/draw-a-filled-triangle-in-drawingcontext
Amir Mahfoozi 27-Mar-12 5:52am
   
Use Google and you will find a lot of solutions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100