summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-04-22 15:30:05 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-04-22 17:38:15 +0200
commit1097686ebddd48b78816d87524caadd17b788c23 (patch)
tree829660cdf95b628e3c8ed037d353466e53458482 /include
parentaf9ae41d6766d9103199f7c41380789ee7740224 (diff)
tdf#160782: convert to bitmapEx from 0,0 to width,height
This is the way it's done everywhere. Partially revert 4b6e0f2c88debaedb514c868e061c21e15215b6e "tdf#160726, tdf#48062: Simplify how BitmapExs are created" Change-Id: I15fea0b6855a65da7cb48b24fc00ba303e33dcf8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166456 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'include')
-rw-r--r--include/drawinglayer/converters.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/drawinglayer/converters.hxx b/include/drawinglayer/converters.hxx
index 4e4d621f5d6a..d090b1e0a921 100644
--- a/include/drawinglayer/converters.hxx
+++ b/include/drawinglayer/converters.hxx
@@ -33,15 +33,15 @@ namespace drawinglayer
// for any content (e.g. gradients)
AlphaMask DRAWINGLAYER_DLLPUBLIC createAlphaMask(
drawinglayer::primitive2d::Primitive2DContainer&& rSeq,
- const geometry::ViewInformation2D& rViewInformation2D, const basegfx::B2DRange& rTargetRange,
- sal_uInt32 nMaxSquarePixels, bool bUseLuminance = false);
+ const geometry::ViewInformation2D& rViewInformation2D, sal_uInt32 nDiscreteWidth,
+ sal_uInt32 nDiscreteHeight, sal_uInt32 nMaxSquarePixels, bool bUseLuminance = false);
// Helper for convertPrimitive2DContainerToBitmapEx below, but can be also used
// directly
BitmapEx DRAWINGLAYER_DLLPUBLIC convertToBitmapEx(
drawinglayer::primitive2d::Primitive2DContainer&& rSeq,
- const geometry::ViewInformation2D& rViewInformation2D, const basegfx::B2DRange& rTargetRange,
- sal_uInt32 nMaxSquarePixels, bool bForceAlphaMaskCreation = false);
+ const geometry::ViewInformation2D& rViewInformation2D, sal_uInt32 nDiscreteWidth,
+ sal_uInt32 nDiscreteHeight, sal_uInt32 nMaxSquarePixels, bool bForceAlphaMaskCreation = false);
// helper to convert any Primitive2DSequence to a good quality BitmapEx,
// using default parameters