LibreOffice Module basegfx (master) 1
|
convert to alpha based on luminance More...
#include <bcolormodifier.hxx>
Public Member Functions | |
BColorModifier_luminance_to_alpha () | |
virtual | ~BColorModifier_luminance_to_alpha () 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 |
Additional Inherited Members | |
Protected Member Functions inherited from basegfx::BColorModifier | |
BColorModifier () | |
convert to alpha based on luminance
returns a color where red green and blue are first weighted and added to build a luminance value which is then inverted and used for red, green and blue. The weights are r * 0.2125 + g * 0.7154 + b * 0.0721. This derivation is used for the svg importer and does exactly what SVG defines for this needed case.
Definition at line 137 of file bcolormodifier.hxx.
|
inline |
Definition at line 140 of file bcolormodifier.hxx.
|
overridevirtual |
Definition at line 72 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 81 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 88 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 76 of file bcolormodifier.cxx.