Developing Painter20

git-svn-id: svn://ultimatepp.org/upp/trunk@847 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-02-09 16:37:48 +00:00
parent e7987fe091
commit d7f5262fc3
61 changed files with 18054 additions and 21 deletions

View file

@ -0,0 +1,18 @@
#include "Examples.h"
#if 0
void TextFillGradient(Painter& sw)
{
const char *txt = "GRADIENT TEXT";
Font fnt = Arial(100).Bold().Italic();
Size tsz = GetTextSize(txt, fnt);
sw.Text(100, 100, txt, fnt)
.Fill(100, 100, Blue(), 100 + tsz.cx, 100 + tsz.cy, LtRed());
}
INITBLOCK {
RegisterExample("Filling text with linear gradient", TextFillGradient);
}
#endif