summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2021-09-03 18:55:08 +1000
committerTomaž Vajngerl <quikee@gmail.com>2021-09-08 10:11:42 +0200
commit6d6c0e2c35186323bb5af35f5a58a2c9d9baa1ed (patch)
tree3d92d4a0adacc9b16444f4051ebc79f26cc738eb /include
parentf83d1b824c1abd07d24318adda6c876b9471ccec (diff)
vcl: migrate GetDownsampledBitmap() from OutputDevice to vcl::bitmap
Change-Id: Iee6caa8292472a3acca66d670a113b701f4b637e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121581 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/BitmapTools.hxx10
-rw-r--r--include/vcl/outdev.hxx15
2 files changed, 10 insertions, 15 deletions
diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx
index 7ca5891f5f90..aebe6ad82424 100644
--- a/include/vcl/BitmapTools.hxx
+++ b/include/vcl/BitmapTools.hxx
@@ -83,6 +83,16 @@ bool VCL_DLLPUBLIC isHistorical8x8(const BitmapEx& rBitmapEx, Color& o_rBack, Co
VCL_DLLPUBLIC bool convertBitmap32To24Plus8(BitmapEx const & rInput, BitmapEx & rResult);
+/** Retrieve downsampled and cropped bitmap
+
+ Takes destination size in twips units.
+
+ @attention This method ignores negative rDstSz values, thus
+ mirroring must happen outside this method (e.g. in DrawBitmap)
+ */
+VCL_DLLPUBLIC Bitmap GetDownsampledBitmap(Size const& rDstSizeTwip, Point const& rSrcPt, Size const& rSrcSz,
+ Bitmap const& rBmp, tools::Long nMaxBmpDPIX, tools::Long nMaxBmpDPIY);
+
} // end vcl::bitmap
#endif // INCLUDED_VCL_BITMAP_TOOLS_HXX
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index fbebf0a1a3d8..f5f398a1e0b9 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1414,21 +1414,6 @@ protected:
basegfx::B2DRange &aVisibleRange,
double &fMaximumArea);
- /** Retrieve downsampled and cropped bitmap
-
- Takes destination size in twips units.
-
- @attention This method ignores negative rDstSz values, thus
- mirroring must happen outside this method (e.g. in DrawBitmap)
- */
- static Bitmap GetDownsampledBitmap(
- const Size& rDstSz,
- const Point& rSrcPt,
- const Size& rSrcSz,
- const Bitmap& rBmp,
- tools::Long nMaxBmpDPIX,
- tools::Long nMaxBmpDPIY );
-
private:
SAL_DLLPRIVATE void DrawDeviceAlphaBitmap(