LibreOffice Module vcl (master) 1
|
#include <BitmapSepiaFilter.hxx>
Public Member Functions | |
BitmapSepiaFilter (double nSepiaPercent) | |
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_uInt16 | mnSepiaPercent |
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) |
Definition at line 18 of file BitmapSepiaFilter.hxx.
|
inline |
Definition at line 21 of file BitmapSepiaFilter.hxx.
Implements BitmapFilter.
Definition at line 21 of file BitmapSepiaFilter.cxx.
References aMap, BitmapEx::GetBitmap(), BitmapReadAccess::GetIndexFromData(), Color::GetLuminance(), BitmapInfoAccess::GetPaletteColor(), BitmapInfoAccess::GetPaletteEntryCount(), BitmapReadAccess::GetPixelFromData(), Bitmap::GetPrefMapMode(), Bitmap::GetPrefSize(), BitmapReadAccess::GetScanline(), Bitmap::GetSizePixel(), BitmapInfoAccess::HasPalette(), i, mnSepiaPercent, vcl::N8_BPP, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), Color::SetBlue(), Color::SetGreen(), BitmapColor::SetIndex(), Bitmap::SetPrefMapMode(), Bitmap::SetPrefSize(), and Color::SetRed().
|
private |
Definition at line 33 of file BitmapSepiaFilter.hxx.
Referenced by execute().