¡@

Home 

c# Programming Glossary: drawingpen

How to draw line of ten thousands of points with WPF within 0.5 second?

http://stackoverflow.com/questions/1150060/how-to-draw-line-of-ten-thousands-of-points-with-wpf-within-0-5-second

DrawingVisual using DrawingContext dx dv.RenderOpen Pen drawingPen new Pen Brushes.Black 1 double x rand.Next 300 double y rand.Next.. i 0 i 1000 i i 0.1 y 100 rand.Next 100 dx.DrawLine drawingPen new Point i x new Point i 1 y x y _children.Add dv c# wpf..

Draw a filled triangle in DrawingContext

http://stackoverflow.com/questions/4732869/draw-a-filled-triangle-in-drawingcontext

using DrawingContext dc triangle.RenderOpen Pen drawingPen new Pen Brushes.Black 3 dc.DrawLine drawingPen new Point 0 50.. Pen drawingPen new Pen Brushes.Black 3 dc.DrawLine drawingPen new Point 0 50 new Point 50 0 dc.DrawLine drawingPen new Point.. drawingPen new Point 0 50 new Point 50 0 dc.DrawLine drawingPen new Point 50 0 new Point 50 100 dc.DrawLine drawingPen new Point..