mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
DrawPainting printer support (banding)
git-svn-id: svn://ultimatepp.org/upp/trunk@756 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9f3f2c637e
commit
87bad2d9fa
2 changed files with 17 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue