diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2018-04-22 22:33:40 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-05-13 08:28:43 +0200 |
commit | 1f6af5c409105562edf2a034f4841c1aeb5a38b5 (patch) | |
tree | 28b62c6b4807bf135c0a066d8ee85412548366e4 /include/vcl/bitmap.hxx | |
parent | 48cf194a1bdd7625c58edd201a7d5191fcd0f934 (diff) |
vcl: move Bitmap::MakeMonochrome() to BitmapMonochromeFilter
Change-Id: Iefe5be4349475a4aa0138534cf6bfe87ff7df245
Reviewed-on: https://gerrit.libreoffice.org/53280
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/vcl/bitmap.hxx')
-rw-r--r-- | include/vcl/bitmap.hxx | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 6ba6dd43378c..aa330fde9877 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -177,28 +177,14 @@ public: */ bool Convert( BmpConversion eConversion ); - - /** Convert to 2 color bitmap. - - Converts to a 2 color indexed bitmap - note that we don't change to black and white - monochrome, but we pick the closest color to black and white in the bitmap. - - @param cThreshold - Luminance value that determines whether the colour should be black (or closest - color to black) or white (or closest color to white). - - @return true conversion to monochrome bitmap was successful - */ - bool MakeMonochrome(sal_uInt8 cThreshold); - /** Apply a 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. + 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 + @param nDitherFlags + The algorithm to be used for dithering */ bool Dither( BmpDitherFlags nDitherFlags ); |