[Libreoffice-commits] core.git: drawinglayer/source
Chris Sherlock (via logerrit)
logerrit at kemper.freedesktop.org
Tue Dec 10 19:25:16 UTC 2019
drawinglayer/source/tools/emfphelperdata.cxx | 19 +++++++++++++++++++
drawinglayer/source/tools/emfphelperdata.hxx | 10 ++++++++++
2 files changed, 29 insertions(+)
New commits:
commit aead2871f72d7e5d6e99b0f8cfefddcf101706a7
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
AuthorDate: Wed Dec 4 03:18:16 2019 +1100
Commit: Bartosz Kosiorek <gang65 at poczta.onet.pl>
CommitDate: Tue Dec 10 20:24:17 2019 +0100
drawinglayer: improve logging of EmfPlusRecordTypeSetAntiAliasMode
Change-Id: I8c2891b13df3989de90ff407896a52ccf5a5208f
Reviewed-on: https://gerrit.libreoffice.org/84451
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65 at poczta.onet.pl>
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,
More information about the Libreoffice-commits
mailing list