diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-18 09:53:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-18 13:38:36 +0200 |
commit | 25f4ef5aa5488869b3bad045ba203c6b22b2e2f0 (patch) | |
tree | 78a15cc5a92192c10392039f10734a0b189d13d2 /cppcanvas | |
parent | ec2e02cfa41510c3d30b118cbf7595c84a046d03 (diff) |
tdf#157792 followup
avoid doing some extra Invert() operations by creating an AlphaMask
instead of a Bitmap to pass to the BitmapEx constructor.
Change-Id: I1af3a5e65010b346fa0d0c56836d567e51c9b58b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158106
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 6bd99840f0a8..d3cfe793f45f 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -208,7 +208,7 @@ namespace aWhite, rMaskColor }; - Bitmap aMask( rBitmap.CreateMask( aWhite )); + AlphaMask aMask( rBitmap.CreateAlphaMask( aWhite )); Bitmap aSolid( rBitmap.GetSizePixel(), vcl::PixelFormat::N8_BPP, &aBiLevelPalette ); |