diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-03 14:50:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-04 09:18:09 +0200 |
commit | 0ba0cfa9a0173a5cca9e230f980b9f4efde7a794 (patch) | |
tree | 511f9ebb4caffce15b383179bc147c6fecc7ac18 /include/vcl/bitmapex.hxx | |
parent | 405c4e37b2ddf3afeda5e4bf9f57a3c9dd5eab85 (diff) |
move "replace transparency" logic inside vcl
Change-Id: I7e6994ec6bf7f0c7380df36c49d0b05a9d27c673
Reviewed-on: https://gerrit.libreoffice.org/75041
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/bitmapex.hxx')
-rw-r--r-- | include/vcl/bitmapex.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx index c6eb9cfca85a..5f8a41f1ed20 100644 --- a/include/vcl/bitmapex.hxx +++ b/include/vcl/bitmapex.hxx @@ -94,8 +94,6 @@ public: sal_uLong GetSizeBytes() const; BitmapChecksum GetChecksum() const; -public: - /** * @brief extract the bitmap and alpha data separately. Used by the SWF filter. */ @@ -293,6 +291,10 @@ public: const Color* pReplaceColors, sal_uLong nColorCount ); + /** Replace transparency with given color. + */ + void ReplaceTransparency( const Color& rColor ); + /** Change various global color characteristics @param nLuminancePercent @@ -430,7 +432,6 @@ public: void GetColorModel(css::uno::Sequence< sal_Int32 >& rRGBPalette, sal_uInt32& rnRedMask, sal_uInt32& rnGreenMask, sal_uInt32& rnBlueMask, sal_uInt32& rnAlphaMask, sal_uInt32& rnTransparencyIndex, sal_uInt32& rnWidth, sal_uInt32& rnHeight, sal_uInt8& rnBitCount); -public: SAL_DLLPRIVATE std::shared_ptr<SalBitmap> const & ImplGetBitmapSalBitmap() const { return maBitmap.ImplGetSalBitmap(); } SAL_DLLPRIVATE std::shared_ptr<SalBitmap> const & ImplGetMaskSalBitmap() const { return maMask.ImplGetSalBitmap(); } |