ultimatepp/uppdev/PainterExamples/TextStrokeGradient.cpp
cxl d7f5262fc3 Developing Painter20
git-svn-id: svn://ultimatepp.org/upp/trunk@847 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-09 16:37:48 +00:00

18 lines
380 B
C++

#include "Examples.h"
#if 0
void TextStrokeGradient(Painter& sw)
{
const char *txt = "GRADIENT TEXT";
Font fnt = Arial(100).Bold();
Size tsz = GetTextSize(txt, fnt);
sw.Text(100, 100, txt, fnt)
.Stroke(4, 100, 100, Blue(), 100 + tsz.cx, 100, LtRed());
}
INITBLOCK {
RegisterExample("Stroking text with linear gradient", TextStrokeGradient);
}
#endif