Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

C#
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900