From 8b0ded99e5f8d71c9b763db264ac445b5f665234 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 30 May 2018 15:06:39 +0200 Subject: move some CanvasHelper::implDrawBitmap inside vcl part of making mask and alpha internal details of Bitmap/BitmapEx Change-Id: I87ca24af18a29f5eb8a5761c5d95ae2806d97e77 Reviewed-on: https://gerrit.libreoffice.org/55078 Reviewed-by: Michael Meeks Tested-by: Jenkins --- canvas/source/vcl/canvashelper.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'canvas') diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx index d7005261558c..a6661c5d5609 100644 --- a/canvas/source/vcl/canvashelper.cxx +++ b/canvas/source/vcl/canvashelper.cxx @@ -46,7 +46,7 @@ #include #include #include -#include +#include #include @@ -720,15 +720,7 @@ namespace vclcanvas // transparency is fully transparent if( aBmpEx.IsAlpha() ) { - Bitmap aMask( aBmpEx.GetAlpha().GetBitmap() ); - BitmapEx aMaskEx(aMask); - BitmapFilter::Filter(aMaskEx, BitmapMonochromeFilter(253)); - aMask = aMaskEx.GetBitmap(); - aBmpEx = BitmapEx( aBmpEx.GetBitmap(), aMask ); - } - else if( aBmpEx.IsTransparent() ) - { - aBmpEx = BitmapEx( aBmpEx.GetBitmap(), aBmpEx.GetMask() ); + BitmapFilter::Filter(aBmpEx, BitmapAlphaClampFilter(253)); } mp2ndOutDevProvider->getOutDev().DrawBitmapEx( vcl::unotools::pointFromB2DPoint( aOutputPos ), -- cgit