vcl/source/bitmap/BitmapDuoToneFilter.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 32d2478a3d11ae4bd2030d0fafe4e882c91cb264 Author: Noel Grandin <[email protected]> AuthorDate: Wed Jan 14 21:32:03 2026 +0200 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Jan 15 12:46:51 2026 +0100 tdf#169934 Transparency is lost when applying a duotone filter regression from commit df4873973ed6951ab63c59129226d18055f771fc Author: Noel Grandin <[email protected]> Date: Wed Aug 27 20:25:54 2025 +0200 simplify Graphic::applyDuotone Change-Id: I69a3da35b53355488c2d6a1f1288048d4096bc6c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197298 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> (cherry picked from commit 0c1df806d965609b46a0c7cec08752c0234b2538) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197313 Reviewed-by: Xisco Fauli <[email protected]> diff --git a/vcl/source/bitmap/BitmapDuoToneFilter.cxx b/vcl/source/bitmap/BitmapDuoToneFilter.cxx index 2dd10459e242..66a4e9ba1037 100644 --- a/vcl/source/bitmap/BitmapDuoToneFilter.cxx +++ b/vcl/source/bitmap/BitmapDuoToneFilter.cxx @@ -41,10 +41,12 @@ Bitmap BitmapDuoToneFilter::execute(Bitmap const& rBitmap) const BitmapColor aColor = pReadAcc->GetColor(y, x); sal_uInt8 nLuminance = aColor.GetLuminance(); BitmapColor aResultColor( + ColorAlpha, lcl_getDuotoneColorComponent(nLuminance, aColorOne.GetRed(), aColorTwo.GetRed()), lcl_getDuotoneColorComponent(nLuminance, aColorOne.GetGreen(), aColorTwo.GetGreen()), - lcl_getDuotoneColorComponent(nLuminance, aColorOne.GetBlue(), aColorTwo.GetBlue())); + lcl_getDuotoneColorComponent(nLuminance, aColorOne.GetBlue(), aColorTwo.GetBlue()), + aColor.GetAlpha()); pWriteAcc->SetPixel(y, x, aResultColor); } }
