diff options
Diffstat (limited to 'vcl/source/rendercontext/drawmode.cxx')
-rw-r--r-- | vcl/source/rendercontext/drawmode.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/rendercontext/drawmode.cxx b/vcl/source/rendercontext/drawmode.cxx index 995017c1f5b1..ab3b36e0223d 100644 --- a/vcl/source/rendercontext/drawmode.cxx +++ b/vcl/source/rendercontext/drawmode.cxx @@ -262,7 +262,9 @@ BitmapEx GetBitmapEx(BitmapEx const& rBitmapEx, DrawModeFlags nDrawMode) // DRAWMODE_BLACK/WHITEBITMAP requires monochrome output, having alpha-induced // grey levels is not acceptable BitmapEx aMaskEx(aBmpEx.GetAlphaMask().GetBitmap()); + aMaskEx.Invert(); // convert to transparency BitmapFilter::Filter(aMaskEx, BitmapMonochromeFilter(129)); + aMaskEx.Invert(); // convert to alpha aBmpEx = BitmapEx(aColorBmp, aMaskEx.GetBitmap()); } else |