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

gamma correction More...

#include <bcolormodifier.hxx>

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

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ BColorModifier_randomize()

basegfx::BColorModifier_randomize::BColorModifier_randomize ( double  fRandomPart = 0.1)

Definition at line 464 of file bcolormodifier.cxx.

◆ ~BColorModifier_randomize()

basegfx::BColorModifier_randomize::~BColorModifier_randomize ( )
overridevirtual

Definition at line 469 of file bcolormodifier.cxx.

Member Function Documentation

◆ getModifiedColor()

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

◆ getModifierName()

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

Implements basegfx::BColorModifier.

Definition at line 515 of file bcolormodifier.cxx.

◆ operator==()

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

Implements basegfx::BColorModifier.

Definition at line 474 of file bcolormodifier.cxx.

References mfRandomPart.

Member Data Documentation

◆ mfRandomPart

double basegfx::BColorModifier_randomize::mfRandomPart
private

Definition at line 389 of file bcolormodifier.hxx.

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


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