diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2019-12-04 03:18:16 +1100 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2019-12-10 20:24:17 +0100 |
commit | aead2871f72d7e5d6e99b0f8cfefddcf101706a7 (patch) | |
tree | b506de85c9bd14412d9b867b9f08172bb8439bd0 /drawinglayer/source/tools | |
parent | 87940721921ec04255a5acfcab41fac4053320d0 (diff) |
drawinglayer: improve logging of EmfPlusRecordTypeSetAntiAliasMode
Change-Id: I8c2891b13df3989de90ff407896a52ccf5a5208f
Reviewed-on: https://gerrit.libreoffice.org/84451
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'drawinglayer/source/tools')
-rw-r--r-- | drawinglayer/source/tools/emfphelperdata.cxx | 19 | ||||
-rw-r--r-- | drawinglayer/source/tools/emfphelperdata.hxx | 10 |
2 files changed, 29 insertions, 0 deletions
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index 41995798e4c3..f8bade29f9e6 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -115,6 +115,20 @@ namespace emfplushelper return ""; } + static OUString SmoothingModeToString(sal_uInt16 nSmoothMode) + { + switch (nSmoothMode) + { + case SmoothingMode::SmoothingModeDefault: return "SmoothingModeDefault"; + case SmoothingMode::SmoothingModeHighSpeed: return "SmoothModeHighSpeed"; + case SmoothingMode::SmoothingModeHighQuality: return "SmoothingModeHighQuality"; + case SmoothingMode::SmoothingModeNone: return "SmoothingModeNone"; + case SmoothingMode::SmoothingModeAntiAlias8x4: return "SmoothingModeAntiAlias8x4"; + case SmoothingMode::SmoothingModeAntiAlias8x8: return "SmoothingModeAntiAlias8x8"; + } + return ""; + } + EMFPObject::~EMFPObject() { } @@ -1551,6 +1565,11 @@ namespace emfplushelper } case EmfPlusRecordTypeSetAntiAliasMode: { + bool bUseAntiAlias = (flags & 0x0001); + sal_uInt8 nSmoothingMode = ((flags & 0xFE00) >> 1); + SAL_INFO("drawinglayer", "EMF+ EmfPlusRecordTypeSetAntiAliasMode"); + SAL_INFO("drawinglayer", "EMF+\t Antialiasing: " << (bUseAntiAlias ? "enabled" : "disabled")); + SAL_INFO("drawinglayer", "EMF+\t Smoothing mode: " << SmoothingModeToString(nSmoothingMode)); SAL_INFO("drawinglayer", "TODO\t EMF+ SetAntiAliasMode"); break; } diff --git a/drawinglayer/source/tools/emfphelperdata.hxx b/drawinglayer/source/tools/emfphelperdata.hxx index 2b96f46cef4e..ba608ed38a2e 100644 --- a/drawinglayer/source/tools/emfphelperdata.hxx +++ b/drawinglayer/source/tools/emfphelperdata.hxx @@ -112,6 +112,16 @@ namespace emfplushelper PixelOffsetModeHalf = 0x04 }; + enum SmoothingMode + { + SmoothingModeDefault = 0x00, + SmoothingModeHighSpeed = 0x01, + SmoothingModeHighQuality = 0x02, + SmoothingModeNone = 0x03, + SmoothingModeAntiAlias8x4 = 0x04, + SmoothingModeAntiAlias8x8 = 0x05 + }; + enum UnitType { UnitTypeWorld = 0x00, |