diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-07 13:58:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-08 09:51:27 +0200 |
commit | 449d272daf5e99f039cdfdd25f020bd798fb9e1d (patch) | |
tree | fad3597606f3fbae275ff990aac45ad8f00e1c86 /include/vcl/salbtype.hxx | |
parent | b43fde69caf456585004b3e1da5161d76eadf057 (diff) |
loplugin:unusedmethods vcl
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
Diffstat (limited to 'include/vcl/salbtype.hxx')
-rw-r--r-- | include/vcl/salbtype.hxx | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/include/vcl/salbtype.hxx b/include/vcl/salbtype.hxx index 4a9d398e16e8..f4ce3cb8fc8b 100644 --- a/include/vcl/salbtype.hxx +++ b/include/vcl/salbtype.hxx @@ -138,11 +138,8 @@ public: inline BitmapColor& Invert(); inline sal_uInt8 GetLuminance() const; - inline BitmapColor& IncreaseLuminance( sal_uInt8 cGreyInc ); - inline BitmapColor& DecreaseLuminance( sal_uInt8 cGreyDec ); inline BitmapColor& Merge( const BitmapColor& rColor, sal_uInt8 cTransparency ); - inline BitmapColor& Merge( sal_uInt8 cR, sal_uInt8 cG, sal_uInt8 cB, sal_uInt8 cTransparency ); inline sal_uLong GetColorError( const BitmapColor& rBitmapColor ) const; }; @@ -405,25 +402,9 @@ inline sal_uInt8 BitmapColor::GetLuminance() const return (static_cast<unsigned long>(mcBlueOrIndex) * 28UL + static_cast<unsigned long>(mcGreen) * 151UL + static_cast<unsigned long>(mcRed) * 77UL) >> 8; } -inline BitmapColor& BitmapColor::IncreaseLuminance( sal_uInt8 cGreyInc ) -{ - DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" ); - mcBlueOrIndex = (sal_uInt8) MinMax( (long) mcBlueOrIndex + cGreyInc, 0L, 255L ); - mcGreen = (sal_uInt8) MinMax( (long) mcGreen + cGreyInc, 0L, 255L ); - mcRed = (sal_uInt8) MinMax( (long) mcRed + cGreyInc, 0L, 255L ); - return *this; -} -inline BitmapColor& BitmapColor::DecreaseLuminance( sal_uInt8 cGreyDec ) -{ - DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" ); - mcBlueOrIndex = (sal_uInt8) MinMax( (long) mcBlueOrIndex - cGreyDec, 0L, 255L ); - mcGreen = (sal_uInt8) MinMax( (long) mcGreen - cGreyDec, 0L, 255L ); - mcRed = (sal_uInt8) MinMax( (long) mcRed - cGreyDec, 0L, 255L ); - return *this; -} inline BitmapColor& BitmapColor::Merge( const BitmapColor& rBitmapColor, sal_uInt8 cTransparency ) { @@ -436,15 +417,7 @@ inline BitmapColor& BitmapColor::Merge( const BitmapColor& rBitmapColor, sal_uIn return *this; } -inline BitmapColor& BitmapColor::Merge( sal_uInt8 cR, sal_uInt8 cG, sal_uInt8 cB, sal_uInt8 cTransparency ) -{ - DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" ); - mcBlueOrIndex = COLOR_CHANNEL_MERGE( mcBlueOrIndex, cB, cTransparency ); - mcGreen = COLOR_CHANNEL_MERGE( mcGreen, cG, cTransparency ); - mcRed = COLOR_CHANNEL_MERGE( mcRed, cR, cTransparency ); - return *this; -} inline sal_uLong BitmapColor::GetColorError( const BitmapColor& rBitmapColor ) const { |