diff options
Diffstat (limited to 'drawinglayer/source/processor2d')
-rw-r--r-- | drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx | 5 | ||||
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx index 6bfc95878332..5347378cc43f 100644 --- a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx @@ -1060,8 +1060,9 @@ sal::systools::COMReference<ID2D1Bitmap> D2DPixelProcessor2D::implCreateAlpha_B2 // use new mode to create AlphaChannel (not just AlphaMask) for transparency channel const AlphaMask aAlpha(::drawinglayer::createAlphaMask( - std::move(xEmbedSeq), aEmptyViewInformation2D, nDiscreteClippedWidth, - nDiscreteClippedHeight, nMaximumQuadraticPixels, true)); + std::move(xEmbedSeq), aEmptyViewInformation2D, + basegfx::B2DRange(0, 0, nDiscreteClippedWidth, nDiscreteClippedHeight), + nMaximumQuadraticPixels, true)); sal::systools::COMReference<ID2D1Bitmap> pRetval; if (aAlpha.IsEmpty()) diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index d93d98fef51a..e3c7703aeaa3 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -2524,9 +2524,11 @@ void VclMetafileProcessor2D::processTransparencePrimitive2D( // limitation to paint the content const auto aViewInformation2D(geometry::createViewInformation2D({})); const sal_uInt32 nMaximumQuadraticPixels(500000); - const BitmapEx aBitmapEx(convertToBitmapEx( - std::move(xEmbedSeq), aViewInformation2D, basegfx::fround(aDiscreteRange.getWidth()), - basegfx::fround(aDiscreteRange.getHeight()), nMaximumQuadraticPixels)); + const BitmapEx aBitmapEx( + convertToBitmapEx(std::move(xEmbedSeq), aViewInformation2D, + basegfx::B2DRange(0, 0, basegfx::fround(aDiscreteRange.getWidth()), + basegfx::fround(aDiscreteRange.getHeight())), + nMaximumQuadraticPixels)); // add to target metafile (will create MetaFloatTransparentAction) mpOutputDevice->DrawBitmapEx(Point(basegfx::fround<tools::Long>(aLogicRange.getMinX()), |