summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-27 12:20:49 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-08-27 08:30:49 +0900
commita0ab7c31a254285856f6520d069570647c56af22 (patch)
tree94e9145f5a36c0341cd7cf71975a420d4f0736b5 /include
parentget rid of the macro here (diff)
downloadcore-a0ab7c31a254285856f6520d069570647c56af22.tar.gz
core-a0ab7c31a254285856f6520d069570647c56af22.zip
Again add ability to change tint/shade of a color + unit test
Change-Id: I4c06290f09e5bfecd2c1de896e19cb5036a3a0e9
Diffstat (limited to 'include')
-rw-r--r--include/tools/color.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index f940dbcf5688..00c89e2e5e89 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -163,6 +163,16 @@ public:
void DecreaseContrast(sal_uInt8 cContDec);
+ /**
+ * Apply tint or shade to a color.
+ *
+ * The input value is the percentage (in 100th of percent) of how much the
+ * color changes towards the black (shade) or white (tint). If the value
+ * is positive, the color is tinted, if the value is negative, the color is
+ * shaded.
+ **/
+ void ApplyTintOrShade(sal_Int16 n100thPercent);
+
void Invert();
void Merge(const Color& rMergeColor, sal_uInt8 cTransparency);