summaryrefslogtreecommitdiffstats
path: root/canvas
diff options
context:
space:
mode:
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/vcl/canvashelper.cxx12
1 files changed, 2 insertions, 10 deletions
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 <vcl/bitmapaccess.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/window.hxx>
-#include <vcl/BitmapMonochromeFilter.hxx>
+#include <vcl/BitmapAlphaClampFilter.hxx>
#include <canvas/canvastools.hxx>
@@ -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 ),