summaryrefslogtreecommitdiff
path: root/vcl/source/graphic/UnoGraphic.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/graphic/UnoGraphic.cxx')
-rw-r--r--vcl/source/graphic/UnoGraphic.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/graphic/UnoGraphic.cxx b/vcl/source/graphic/UnoGraphic.cxx
index 2f360c8b40b7..484d04443f72 100644
--- a/vcl/source/graphic/UnoGraphic.cxx
+++ b/vcl/source/graphic/UnoGraphic.cxx
@@ -165,7 +165,10 @@ uno::Sequence<sal_Int8> SAL_CALL Graphic::getMaskDIB()
{
SvMemoryStream aMemoryStream;
- WriteDIB(maGraphic.GetBitmapEx().GetAlphaMask().GetBitmap(), aMemoryStream, false, true);
+ AlphaMask aMask = maGraphic.GetBitmapEx().GetAlphaMask();
+ // for backwards compatibility for extensions, we need to convert from alpha to transparency
+ aMask.Invert();
+ WriteDIB(aMask.GetBitmap(), aMemoryStream, false, true);
return css::uno::Sequence<sal_Int8>( static_cast<sal_Int8 const *>(aMemoryStream.GetData()), aMemoryStream.Tell() );
}
else