LibreOffice Module basegfx (master) 1
|
gamma correction More...
#include <bcolormodifier.hxx>
Public Member Functions | |
BColorModifier_randomize (double fRandomPart=0.1) | |
virtual | ~BColorModifier_randomize () 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 | mfRandomPart |
Additional Inherited Members | |
Protected Member Functions inherited from basegfx::BColorModifier | |
BColorModifier () | |
gamma correction
Input is a gamma correction value in the range ]0.0 .. 10.0]; the color values get corrected using
col(r,g,b) = clamp(pow(col(r,g,b), 1.0 / gamma), 0.0, 1.0) Red, Green, Blue, Luminance and Contrast correction
Input are percent values from [-1.0 .. 1-0] which correspond to -100% to 100% correction of Red, Green, Blue, Luminance or Contrast. 0.0 means no change of the corresponding channel. All these are combined (but can be used single) to
Definition at line 384 of file bcolormodifier.hxx.
basegfx::BColorModifier_randomize::BColorModifier_randomize | ( | double | fRandomPart = 0.1 | ) |
Definition at line 464 of file bcolormodifier.cxx.
|
overridevirtual |
Definition at line 469 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 487 of file bcolormodifier.cxx.
References mfRandomPart, and comphelper::rng::uniform_real_distribution().
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 515 of file bcolormodifier.cxx.
|
overridevirtual |
Implements basegfx::BColorModifier.
Definition at line 474 of file bcolormodifier.cxx.
References mfRandomPart.
|
private |
Definition at line 389 of file bcolormodifier.hxx.
Referenced by getModifiedColor(), and operator==().