DrawPainting printer support (banding)

git-svn-id: svn://ultimatepp.org/upp/trunk@756 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-01-16 00:04:17 +00:00
parent 9f3f2c637e
commit 87bad2d9fa
2 changed files with 17 additions and 3 deletions

View file

@ -227,8 +227,8 @@ void PaintImageBuffer(ImageBuffer& ib, const Painting& p, Size sz, Point pos)
{
BufferPainter sw(ib);
Sizef psz = p.GetSize();
sw.Scale(sz.cx / psz.cx, sz.cy / psz.cy);
sw.Translate(-pos.x, -pos.y);
sw.Scale(sz.cx / psz.cx, sz.cy / psz.cy);
sw.Paint(p);
}