summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/color.hxx1
-rw-r--r--tools/source/generic/color.cxx15
2 files changed, 0 insertions, 16 deletions
diff --git a/tools/inc/tools/color.hxx b/tools/inc/tools/color.hxx
index ba9d7df5806d..a9fe58975e17 100644
--- a/tools/inc/tools/color.hxx
+++ b/tools/inc/tools/color.hxx
@@ -156,7 +156,6 @@ public:
void IncreaseLuminance( sal_uInt8 cLumInc );
void DecreaseLuminance( sal_uInt8 cLumDec );
- void IncreaseContrast( sal_uInt8 cContInc );
void DecreaseContrast( sal_uInt8 cContDec );
void Invert();
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index f06d3d1a5ac0..aa848f72bbbe 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -102,21 +102,6 @@ void Color::DecreaseLuminance( sal_uInt8 cLumDec )
// -----------------------------------------------------------------------
-void Color::IncreaseContrast( sal_uInt8 cContInc )
-{
- if( cContInc)
- {
- const double fM = 128.0 / ( 128.0 - 0.4985 * cContInc );
- const double fOff = 128.0 - fM * 128.0;
-
- SetRed( (sal_uInt8) SAL_BOUND( _FRound( COLORDATA_RED( mnColor ) * fM + fOff ), 0L, 255L ) );
- SetGreen( (sal_uInt8) SAL_BOUND( _FRound( COLORDATA_GREEN( mnColor ) * fM + fOff ), 0L, 255L ) );
- SetBlue( (sal_uInt8) SAL_BOUND( _FRound( COLORDATA_BLUE( mnColor ) * fM + fOff ), 0L, 255L ) );
- }
-}
-
-// -----------------------------------------------------------------------
-
void Color::DecreaseContrast( sal_uInt8 cContDec )
{
if( cContDec )