LibreOffice Module vcl (master) 1
|
If the alpha is beyond a certain threshold, make it fully transparent. More...
#include <BitmapAlphaClampFilter.hxx>
Public Member Functions | |
BitmapAlphaClampFilter (sal_uInt8 cThreshold) | |
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) |
If the alpha is beyond a certain threshold, make it fully transparent.
Definition at line 18 of file BitmapAlphaClampFilter.hxx.
|
inline |
Definition at line 21 of file BitmapAlphaClampFilter.hxx.
Implements BitmapFilter.
Definition at line 16 of file BitmapAlphaClampFilter.cxx.
References BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), BitmapColor::GetIndex(), BitmapEx::GetSizePixel(), Size::Height(), BitmapEx::IsAlpha(), mcThreshold, BitmapColor::SetIndex(), and Size::Width().
|
private |
Definition at line 29 of file BitmapAlphaClampFilter.hxx.
Referenced by execute().