diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-28 14:19:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-28 18:14:59 +0200 |
commit | e9dfa816f7002c686ad155682a21a06ec6041b5f (patch) | |
tree | 37f05cb9da44cf631bbbcf9851e713b4fa9b0fd4 /drawinglayer | |
parent | b7d5b8cee77e4cfd931cdbd6f4ba8673c6bbe490 (diff) |
tdf#156808 soft edge effect makes image (except for soft edge) disappear
This is clearly fallout from
commit 81994cb2b8b32453a92bcb011830fcb884f22ff3
Date: Fri Apr 16 20:33:10 2021 +0200
Convert internal vcl bitmap formats transparency->alpha (II)
And it clearly fixes the problem, but I'm not sure __why__ it fixes the
problem.
Change-Id: I805ed85dd22b2124328e6b4dba098c5f093aec55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156198
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/softedgeprimitive2d.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx index 27e265ab1ae1..1da2f688d739 100644 --- a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx @@ -202,6 +202,7 @@ void SoftEdgePrimitive2D::create2DDecomposition( const AlphaMask blurMask(drawinglayer::primitive2d::ProcessAndBlurAlphaMask( aMask, -fDiscreteSoftRadius * fScale, fDiscreteSoftRadius * fScale, 0)); aMask.BlendWith(blurMask); + aMask.Invert(); // The end result is the original bitmap with blurred 8-bit alpha mask BitmapEx result(aBitmapEx.GetBitmap(), aMask); |