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

#include <BitmapFilterStackBlur.hxx>

Inheritance diagram for BitmapFilterStackBlur:
Collaboration diagram for BitmapFilterStackBlur:

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)

Detailed Description

Definition at line 18 of file BitmapFilterStackBlur.hxx.

Constructor & Destructor Documentation

◆ BitmapFilterStackBlur()

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 (

Additionally references and implementations:

Definition at line 613 of file BitmapFilterStackBlur.cxx.

◆ ~BitmapFilterStackBlur()

BitmapFilterStackBlur::~BitmapFilterStackBlur ( )

Definition at line 618 of file BitmapFilterStackBlur.cxx.

Member Function Documentation

◆ execute()

BitmapEx BitmapFilterStackBlur::execute ( BitmapEx const &  rBitmap) const

Implements BitmapFilter.

Definition at line 620 of file BitmapFilterStackBlur.cxx.

References filter(), BitmapEx::GetAlphaMask(), BitmapEx::GetBitmap(), and result.

◆ filter()

Bitmap BitmapFilterStackBlur::filter ( Bitmap const &  rBitmap) const

Member Data Documentation

◆ mnRadius

sal_Int32 BitmapFilterStackBlur::mnRadius

Definition at line 20 of file BitmapFilterStackBlur.hxx.

Referenced by filter().

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