diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-27 12:20:49 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-08-27 08:30:49 +0900 |
commit | a0ab7c31a254285856f6520d069570647c56af22 (patch) | |
tree | 94e9145f5a36c0341cd7cf71975a420d4f0736b5 /include/tools/color.hxx | |
parent | bba73f9e0f286f48fe02f7e232c53de79fc5f12c (diff) |
Again add ability to change tint/shade of a color + unit test
Change-Id: I4c06290f09e5bfecd2c1de896e19cb5036a3a0e9
Diffstat (limited to 'include/tools/color.hxx')
-rw-r--r-- | include/tools/color.hxx | 10 |
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); |