LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
BitmapMonochromeFilter Class Referencefinal

#include <BitmapMonochromeFilter.hxx>

Inheritance diagram for BitmapMonochromeFilter:
[legend]
Collaboration diagram for BitmapMonochromeFilter:
[legend]

Public Member Functions

 BitmapMonochromeFilter (sal_uInt8 cThreshold)
 Convert to 2 color bitmap. More...
 
virtual BitmapEx execute (BitmapEx const &rBitmapEx) const override
 
- Public Member Functions inherited from BitmapFilter
 BitmapFilter ()
 
virtual ~BitmapFilter ()
 
virtual BitmapEx execute (BitmapEx const &rBitmapEx) const =0
 

Private Attributes

sal_uInt8 mcThreshold
 

Additional Inherited Members

- Static Public Member Functions inherited from BitmapFilter
static bool Filter (BitmapEx &rBmpEx, BitmapFilter const &rFilter)
 
static bool Filter (Animation &rBmpEx, BitmapFilter const &rFilter)
 

Detailed Description

Definition at line 16 of file BitmapMonochromeFilter.hxx.

Constructor & Destructor Documentation

◆ BitmapMonochromeFilter()

BitmapMonochromeFilter::BitmapMonochromeFilter ( sal_uInt8  cThreshold)
inline

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.

Parameters
cThresholdLuminance value that determines whether the colour should be black (or closest color to black) or white (or closest color to white).

Definition at line 30 of file BitmapMonochromeFilter.hxx.

Member Function Documentation

◆ execute()

BitmapEx BitmapMonochromeFilter::execute ( BitmapEx const &  rBitmapEx) const
overridevirtual

Member Data Documentation

◆ mcThreshold

sal_uInt8 BitmapMonochromeFilter::mcThreshold
private

Definition at line 38 of file BitmapMonochromeFilter.hxx.

Referenced by execute().


The documentation for this class was generated from the following files: