ultimatepp/examples/PainterExamples/StrokeBug.cpp
cxl 845ace0cc0 Painter Examples
git-svn-id: svn://ultimatepp.org/upp/trunk@750 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-01-15 22:25:46 +00:00

20 lines
501 B
C++

#include "Examples.h"
#include "Examples.h"
void StrokeBug(Painter& sw)
{
const char *txt = "GR";//ADIENT TEXT";
Font fnt = Arial(100).Bold();
Size tsz = GetTextSize(txt, fnt);
sw.Scale(-4, 4);
sw.Translate(-300, 0);
sw.Text(100, 100, txt, fnt)
.Stroke(10, 100, 100, Blue(), 100 + tsz.cx, 100, LtRed())
.Stroke(0.25, White()); // _DBG_
sw.Path("M 100 100 L 200 100 L 180 90 L 180 120").Stroke(25, Blue());
}
INITBLOCK {
RegisterExample("Stroke bug", StrokeBug);
}