diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2012-06-16 00:05:00 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2012-06-16 00:39:08 +0200 |
commit | ee41193f3e12ea55237f7681e4b53162a0d421d2 (patch) | |
tree | f02ac0b7a6fb8c64df55491152af8eeb4c371c09 /cui/source/inc/cuigrfflt.hxx | |
parent | Fix wrong variable name in Smooth filter parameters class. (diff) | |
download | core-ee41193f3e12ea55237f7681e4b53162a0d421d2.tar.gz core-ee41193f3e12ea55237f7681e4b53162a0d421d2.zip |
Dialog for Smooth filter
Added dialog for smooth (gaussian blur) filter which now accepts
a parameter for setting the strenth of smoothing (bluring).
Change-Id: Ida6709b060cb5429a63af1994493e716fd0bfebb
Diffstat (limited to 'cui/source/inc/cuigrfflt.hxx')
-rw-r--r-- | cui/source/inc/cuigrfflt.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cui/source/inc/cuigrfflt.hxx b/cui/source/inc/cuigrfflt.hxx index 05b0eec9a984..98303e058baf 100644 --- a/cui/source/inc/cuigrfflt.hxx +++ b/cui/source/inc/cuigrfflt.hxx @@ -95,6 +95,26 @@ public: virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ) = 0; }; +// ------------------------- +// - GraphicFilterSmooth - +// ------------------------- + +class GraphicFilterSmooth : public GraphicFilterDialog +{ +private: + + FixedText maFtRadius; + NumericField maMtrRadius; + +public: + + GraphicFilterSmooth( Window* pParent, const Graphic& rGraphic, double nRadius); + ~GraphicFilterSmooth(); + + virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ); + double GetRadius() const { return maMtrRadius.GetValue() / 10.0; } +}; + // ----------------------- // - GraphicFilterMosaic - // ----------------------- |