ultimatepp/examples/PainterExamples/Dash.cpp
cxl b556ccca12 New painter examples
git-svn-id: svn://ultimatepp.org/upp/trunk@869 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-15 22:34:47 +00:00

18 lines
531 B
C++

#include "Examples.h"
void Dash(Painter& sw)
{
sw.Move(50, 50).Line(400, 200).Dash("2").Stroke(5, Blue());
sw.Translate(0, 10);
sw.Move(50, 50).Line(400, 200).Dash("10 5").Stroke(5, Blue());
sw.Translate(0, 10);
sw.Move(50, 50).Line(400, 200).Dash("10 5 5 5").Stroke(5, Blue());
sw.Translate(0, 10);
sw.Move(50, 50).Line(400, 200).Dash("1").Stroke(5, Blue());
sw.Translate(0, 10);
sw.Move(50, 50).Line(400, 200).Dash("1 2 3 4 5").Stroke(5, Blue());
}
INITBLOCK {
RegisterExample("Dash test", Dash);
}