Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Paint dashed polyline
Paint dashed polyline [message #34656] |
Sun, 04 December 2011 00:39 ![Go to next message Go to previous message](theme/default/images/down.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/648.jpg) |
koldo
Messages: 3372 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
I wanted to paint a dashed polyline, but code like this does not work properly.
How could you do it?
void DrawPolyline(Painter& w, const Vector<Point> &p)
{
for (int i = 1; i < p.GetCount(); ++i)
w.Move(p[i-1]).Line(p[i]).Stroke(2, Black()).Dash("5 2");
}
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Sun Jun 16 19:58:46 CEST 2024
Total time taken to generate the page: 0.03466 seconds
|