Painter20 dasher

git-svn-id: svn://ultimatepp.org/upp/trunk@840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-02-07 13:35:31 +00:00
parent 68c2a1caaa
commit 068030de69
13 changed files with 231 additions and 505 deletions

View file

@ -185,12 +185,12 @@ Image PaintLion(Size sz)
}
static Vector<ColorPolygon> l = Lion();
Rasterizer r(sz.cx, sz.cy);
static Rasterizer r(sz.cx, sz.cy);
for(int i = 0; i < l.GetCount(); i++) {
Vector<Pointf>& p = l[i].point;
r.Move(p[0].x, p[0].y);
r.Move(p[0]);
for(int j = 1; j < p.GetCount(); j++)
r.Line(p[j].x, p[j].y);
r.Line(p[j]);
Render(ib, r, l[i].color, false);
r.Reset();
}