*Draw, CtrlLib: Fixed transparency of Paintings in Picture

git-svn-id: svn://ultimatepp.org/upp/trunk@5115 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-07-04 15:16:34 +00:00
parent 3cfe5186a4
commit d811e18dba
7 changed files with 33 additions and 13 deletions

View file

@ -290,4 +290,12 @@ void PaintingPainter::Create(Sizef sz)
Create(sz.cx, sz.cy);
}
Drawing AsDrawing(const Painting& pw)
{
Size sz = pw.GetSize();
DrawingDraw dw(sz);
dw.DrawPainting(sz, pw);
return dw.GetResult();
}
END_UPP_NAMESPACE