LibreOffice Module vcl (master) 1
|
#include <BitmapFilterStackBlur.hxx>
Public Member Functions | |
BitmapFilterStackBlur (sal_Int32 nRadius) | |
Implementation of stack blur - a fast Gaussian blur approximation. More... | |
virtual | ~BitmapFilterStackBlur () |
virtual BitmapEx | execute (BitmapEx const &rBitmap) const override |
Bitmap | filter (Bitmap const &rBitmap) const |
Public Member Functions inherited from BitmapFilter | |
BitmapFilter () | |
virtual | ~BitmapFilter () |
virtual BitmapEx | execute (BitmapEx const &rBitmapEx) const =0 |
Private Attributes | |
sal_Int32 | mnRadius |
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 BitmapFilterStackBlur.hxx.
BitmapFilterStackBlur::BitmapFilterStackBlur | ( | sal_Int32 | nRadius | ) |
Implementation of stack blur - a fast Gaussian blur approximation.
nRadius - blur radius, valid values are between 2 and 254 bExtend - extend the bitmap in all directions by the radius
Stack Blur Algorithm by Mario Klingemann mario.nosp@m.@qua.nosp@m.simon.nosp@m.do.c.nosp@m.om (http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html)
Additionally references and implementations:
Definition at line 613 of file BitmapFilterStackBlur.cxx.
|
virtual |
Definition at line 618 of file BitmapFilterStackBlur.cxx.
Implements BitmapFilter.
Definition at line 620 of file BitmapFilterStackBlur.cxx.
References filter(), BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), and result.
Definition at line 627 of file BitmapFilterStackBlur.cxx.
References BitmapInfoAccess::GetScanlineFormat(), mnRadius, N24BitTcBgr, N24BitTcRgb, N32BitTcBgra, N32BitTcMask, N8BitPal, and NONE.
Referenced by execute().
|
private |
Definition at line 20 of file BitmapFilterStackBlur.hxx.
Referenced by filter().