diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-16 14:58:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-16 19:25:48 +0100 |
commit | 5b75a1697250d8b2b6003c37067f39270a5ad828 (patch) | |
tree | 14d1fddc6f14707c64c220ee738e25567037de18 /include/vcl/BitmapTools.hxx | |
parent | 92dc87cbac74c1be260534b5e38088c44515a47b (diff) |
move cairo extract bitmap code from canvas to vcl
part of making GetMask/GetAlpha an internal detail of vcl
Change-Id: I45c2e9fdae08d7f444a64e8e04a6f65bb525cbd1
Reviewed-on: https://gerrit.libreoffice.org/51417
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/BitmapTools.hxx')
-rw-r--r-- | include/vcl/BitmapTools.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx index 3a1692730393..9c347d275f4b 100644 --- a/include/vcl/BitmapTools.hxx +++ b/include/vcl/BitmapTools.hxx @@ -98,6 +98,12 @@ VCL_DLLPUBLIC void DrawAndClipBitmap(const Point& rPos, const Size& rSize, const VCL_DLLPUBLIC css::uno::Sequence< sal_Int8 > GetMaskDIB(BitmapEx const & aBmpEx); +/** + * @param data will be filled with alpha data, if xBitmap is alpha/transparent image + * @param bHasAlpha will be set to true if resulting surface has alpha + **/ +VCL_DLLPUBLIC void CanvasCairoExtractBitmapData( BitmapEx & rBmpEx, Bitmap & rBitmap, unsigned char*& data, bool& bHasAlpha ); + }} // end vcl::bitmap #endif // INCLUDED_VCL_BITMAP_TOOLS_HXX |