Painter Examples

git-svn-id: svn://ultimatepp.org/upp/trunk@750 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-01-15 22:25:46 +00:00
parent 1167eca8e0
commit 845ace0cc0
22 changed files with 14504 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#include "Examples.h"
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);
}