diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-12 13:39:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-13 07:19:38 +0100 |
commit | d2bc01ff10f93a710296c7355efa8b11c6be0f56 (patch) | |
tree | 150a768a76778bd8205970c22eb67405375b70e0 /include/vcl/bitmap.hxx | |
parent | 312eeeee42cb4a1e356943e17305555e41afc4ef (diff) |
loplugin:constantparam
Change-Id: I389f98d06058ba65a8c2d4df2bf7d4e5102659ad
Reviewed-on: https://gerrit.libreoffice.org/65017
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/bitmap.hxx')
-rw-r--r-- | include/vcl/bitmap.hxx | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index b67850196b7a..c1a353f643c8 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -59,16 +59,6 @@ enum class BmpScaleFlag }; -enum class BmpDitherFlags -{ - NONE = 0x0000, - Floyd = 0x0001, -}; -namespace o3tl -{ - template<> struct typed_flags<BmpDitherFlags> : is_typed_flags<BmpDitherFlags, 0x01> {}; -} - #define BMP_COL_TRANS Color( 252, 3, 251 ) enum class BmpConversion @@ -172,16 +162,14 @@ public: */ bool Convert( BmpConversion eConversion ); - /** Apply a dither algorithm to the bitmap + /** Apply a Floyd dither algorithm to the bitmap This method dithers the bitmap inplace, i.e. a true color bitmap is converted to a paletted bitmap, reducing the color deviation by error diffusion. - @param nDitherFlags - The algorithm to be used for dithering */ - bool Dither( BmpDitherFlags nDitherFlags ); + bool Dither(); /** Crop the bitmap @@ -533,7 +521,6 @@ public: SAL_DLLPRIVATE void ImplSetSalBitmap( const std::shared_ptr<SalBitmap>& xImpBmp ); SAL_DLLPRIVATE bool ImplMakeGreyscales( sal_uInt16 nGreyscales ); - SAL_DLLPRIVATE bool ImplDitherFloyd(); public: |