diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/BitmapMonochromeMatrixFilter.hxx | 28 | ||||
-rw-r--r-- | include/vcl/bitmap.hxx | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/include/vcl/BitmapMonochromeMatrixFilter.hxx b/include/vcl/BitmapMonochromeMatrixFilter.hxx new file mode 100644 index 000000000000..58d1d917f65d --- /dev/null +++ b/include/vcl/BitmapMonochromeMatrixFilter.hxx @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + */ + +#ifndef INCLUDED_INCLUDE_VCL_BITMAPMONOCHROMEMATRIXFILTER_HXX +#define INCLUDED_INCLUDE_VCL_BITMAPMONOCHROMEMATRIXFILTER_HXX + +#include <vcl/BitmapFilter.hxx> + +class VCL_DLLPUBLIC BitmapMonochromeMatrixFilter final : public BitmapFilter +{ +public: + /** Convert to monochrome (1-bit) bitmap using dithering + */ + BitmapMonochromeMatrixFilter() {} + + virtual BitmapEx execute(BitmapEx const& rBitmapEx) const override; +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 3d57e5dfe741..72473ecbed30 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -66,6 +66,7 @@ enum class BmpConversion { NNONE, N1BitThreshold, + N1BitMatrix, // aka Dithered, used in export to bitmap N4BitGreys, N4BitColors, N8BitGreys, |