diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-13 08:47:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-13 14:36:27 +0100 |
commit | 502f6372aeb6689f3d61cea7a77b2e8db160d767 (patch) | |
tree | eabad6b878cd69d0f61af04259935d7efcd23830 /filter/source/msfilter/escherex.cxx | |
parent | f3d39d9a8502ae678a4eedfb73d1efc49104d7dc (diff) |
transparency->alpha in GraphicAttr
Change-Id: I1fe9311871724ff8b7b8960f5dba6e890198565c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109211
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/msfilter/escherex.cxx')
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index 1cc14d87ff83..5df267f3f954 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -1679,7 +1679,7 @@ bool EscherPropertyContainer::CreateGraphicProperties(const uno::Reference<beans if(nTransparency) { - pGraphicAttr->SetTransparency((nTransparency * 255) / 100); + pGraphicAttr->SetAlpha(255 - (nTransparency * 255) / 100); } if(nRed) @@ -3935,7 +3935,7 @@ EscherBlibEntry::EscherBlibEntry( sal_uInt32 nPictureOffset, const GraphicObject .WriteInt16( pGraphicAttr->GetChannelB() ) .WriteDouble( pGraphicAttr->GetGamma() ); aSt.WriteBool( pGraphicAttr->IsInvert() ) - .WriteUChar( pGraphicAttr->GetTransparency() ); + .WriteUChar( 255 - pGraphicAttr->GetAlpha() ); // transparency mnIdentifier[ 1 ] = rtl_crc32( 0, aSt.GetData(), aSt.Tell() ); } else |