EMF+: Do not ignore source rectangle of the image to be rendered.
Change-Id: I4f861c7653c89d8f1ca73696e885f33f7bfc3b06
This commit is contained in:
@@ -1826,6 +1826,7 @@ namespace cppcanvas
|
||||
sal_Int32 aCount;
|
||||
|
||||
ReadRectangle (rMF, sx, sy, sw, sh);
|
||||
Rectangle aSource(Point(sx, sy), Size(sw, sh));
|
||||
|
||||
SAL_INFO("cppcanvas.emf", "EMF+ " << (type == EmfPlusRecordTypeDrawImagePoints ? "DrawImagePoints" : "DrawImage") << " source rectangle: " << sx << "," << sy << " " << sw << "x" << sh);
|
||||
|
||||
@@ -1866,6 +1867,7 @@ namespace cppcanvas
|
||||
|
||||
if (bValid) {
|
||||
BitmapEx aBmp( image.graphic.GetBitmapEx () );
|
||||
aBmp.Crop( aSource );
|
||||
|
||||
Size aSize( aBmp.GetSizePixel() );
|
||||
SAL_INFO("cppcanvas.emf", "EMF+ bitmap size: " << aSize.Width() << "x" << aSize.Height());
|
||||
|
Reference in New Issue
Block a user