diff options
Diffstat (limited to 'vcl/source/graphic/UnoGraphic.cxx')
-rw-r--r-- | vcl/source/graphic/UnoGraphic.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/graphic/UnoGraphic.cxx b/vcl/source/graphic/UnoGraphic.cxx index d1b7fd0238df..6448765a9056 100644 --- a/vcl/source/graphic/UnoGraphic.cxx +++ b/vcl/source/graphic/UnoGraphic.cxx @@ -206,7 +206,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL Graphic::colorChange( if ((nAlphaTo == 0) || (nAlphaTo == sal::static_int_cast< sal_Int8 >(0xff))) { Bitmap aBitmap(aBitmapEx.GetBitmap()); - Bitmap aMask(aBitmap.CreateMask(aColorFrom, nTolerance)); + AlphaMask aMask(aBitmap.CreateAlphaMask(aColorFrom, nTolerance)); aBitmap.Replace(aColorFrom, aColorTo, nTolerance); aReturnGraphic = ::Graphic(BitmapEx(aBitmap, aMask)); } |