summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-05-14 14:42:24 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-05-29 10:30:31 +0200
commit2356a687e3abae2eecb9060d52bb4c4fadbaaae2 (patch)
treec91d5cfa19ce65654e6767b6cc14558a922a8824 /include/vcl
parentd0aff1174189983a1a090f61a504d6a3c7fca095 (diff)
Add AlphaMask::BlendWith method to blend 8-bit alpha masks
Required for subsequent soft edge effect improvement Change-Id: I9351b827a83c5651100e73a6846c834f491b861d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95027 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 6806616023242aded27b1fae8637d32c9626d472) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95077
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/alpha.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/alpha.hxx b/include/vcl/alpha.hxx
index f87ac133970a..159c61243efa 100644
--- a/include/vcl/alpha.hxx
+++ b/include/vcl/alpha.hxx
@@ -56,6 +56,7 @@ public:
void Erase( sal_uInt8 cTransparency );
void Replace( const Bitmap& rMask, sal_uInt8 rReplaceTransparency );
void Replace( sal_uInt8 cSearchTransparency, sal_uInt8 cReplaceTransparency );
+ void BlendWith(const Bitmap& rOther);
BitmapReadAccess* AcquireAlphaReadAccess() { return Bitmap::AcquireReadAccess(); }
BitmapWriteAccess* AcquireAlphaWriteAccess() { return Bitmap::AcquireWriteAccess(); }