mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-31 22:02:58 -06:00
Painter 2.0 clipping
git-svn-id: svn://ultimatepp.org/upp/trunk@852 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7865e5bcd2
commit
64994ce5aa
9 changed files with 204 additions and 160 deletions
|
|
@ -6,18 +6,8 @@ void TextFillGradient(Painter& sw)
|
|||
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());
|
||||
.Fill(100, 100, Blue(), 100 + tsz.cx, 100 + tsz.cy, LtRed());
|
||||
sw.Translate(0, 200);
|
||||
sw.Rectangle(100, 100, tsz.cx, tsz.cy)
|
||||
.Stroke(1, Blue())
|
||||
.Fill(TestImg::test(), 100, 100, 100 + tsz.cx, 100 + tsz.cy);
|
||||
sw.Move(100, 300).RelLine(tsz.cx + 50, 0).RelLine(-30, tsz.cy).RelLine(-tsz.cx / 2, 0)
|
||||
.Fill(100, 300, Blue(), 100 + tsz.cx, 300/* + tsz.cy*/, LtRed())
|
||||
// .Fill(TestImg::test(), 100, 300, 100 + tsz.cx, 300 + tsz.cy)
|
||||
.Stroke(1, Blue());
|
||||
/* sw.Text(100, 100, txt, fnt)
|
||||
.Fill(TestImg::test(), 100, 100, 100 + tsz.cx, 100 + tsz.cy)
|
||||
.Stroke(1, Black());*/
|
||||
}
|
||||
|
||||
INITBLOCK {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue