LibreOffice Module basegfx (master) 1
Public Member Functions | Private Attributes | List of all members
basegfx::BColorModifier_black_and_white Class Referencefinal

convert color to black and white More...

#include <bcolormodifier.hxx>

Inheritance diagram for basegfx::BColorModifier_black_and_white:
[legend]
Collaboration diagram for basegfx::BColorModifier_black_and_white:
[legend]

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BColorModifier_black_and_white()

basegfx::BColorModifier_black_and_white::BColorModifier_black_and_white ( double  fValue)
inline

Definition at line 302 of file bcolormodifier.hxx.

◆ ~BColorModifier_black_and_white()

basegfx::BColorModifier_black_and_white::~BColorModifier_black_and_white ( )
overridevirtual

Definition at line 296 of file bcolormodifier.cxx.

Member Function Documentation

◆ getModifiedColor()

basegfx::BColor basegfx::BColorModifier_black_and_white::getModifiedColor ( const ::basegfx::BColor aSourceColor) const
overridevirtual

Implements basegfx::BColorModifier.

Definition at line 312 of file bcolormodifier.cxx.

References mfValue.

◆ getModifierName()

OUString basegfx::BColorModifier_black_and_white::getModifierName ( ) const
overridevirtual

Implements basegfx::BColorModifier.

Definition at line 326 of file bcolormodifier.cxx.

◆ operator==()

bool basegfx::BColorModifier_black_and_white::operator== ( const BColorModifier rCompare) const
overridevirtual

Implements basegfx::BColorModifier.

Definition at line 300 of file bcolormodifier.cxx.

References mfValue.

Member Data Documentation

◆ mfValue

double basegfx::BColorModifier_black_and_white::mfValue
private

Definition at line 299 of file bcolormodifier.hxx.

Referenced by getModifiedColor(), and operator==().


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