LibreOffice Module basegfx (master) 1
|
convert color to black and white More...
#include <bcolormodifier.hxx>
Public Member Functions | |
BColorModifier_black_and_white (double fValue) | |
virtual | ~BColorModifier_black_and_white () override |
virtual SAL_DLLPRIVATE bool | operator== (const BColorModifier &rCompare) const override |
virtual SAL_DLLPRIVATE ::basegfx::BColor | getModifiedColor (const ::basegfx::BColor &aSourceColor) const override |
virtual SAL_DLLPRIVATE OUString | getModifierName () const override |
Public Member Functions inherited from basegfx::BColorModifier | |
virtual | ~BColorModifier () |
virtual bool | operator== (const BColorModifier &rCompare) const =0 |
bool | operator!= (const BColorModifier &rCompare) const |
virtual ::basegfx::BColor | getModifiedColor (const ::basegfx::BColor &aSourceColor) const =0 |
virtual OUString | getModifierName () const =0 |
Private Attributes | |
double | mfValue |
Additional Inherited Members | |
Protected Member Functions inherited from basegfx::BColorModifier | |
BColorModifier () | |
convert color to black and white
returns black when the luminance of the given color is less than the given threshold value in the range [0.0 .. 1.0], else white
Definition at line 296 of file bcolormodifier.hxx.
|
inline |
Definition at line 302 of file bcolormodifier.hxx.
|
overridevirtual |
Definition at line 296 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 312 of file bcolormodifier.cxx.
References mfValue.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 326 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 300 of file bcolormodifier.cxx.
References mfValue.
|
private |
Definition at line 299 of file bcolormodifier.hxx.
Referenced by getModifiedColor(), and operator==().