LibreOffice Module vcl (master)  1
Public Member Functions | List of all members
BitmapColor Class Referencefinal

#include <BitmapColor.hxx>

Inheritance diagram for BitmapColor:
[legend]
Collaboration diagram for BitmapColor:
[legend]

Public Member Functions

 BitmapColor ()
 
constexpr BitmapColor (sal_uInt8 cRed, sal_uInt8 cGreen, sal_uInt8 cBlue, sal_uInt8 cAlpha=0)
 
 BitmapColor (const Color &rColor)
 
 BitmapColor (sal_uInt8 cIndex)
 
sal_uInt8 GetIndex () const
 
void SetIndex (sal_uInt8 cIndex)
 
sal_uInt8 GetAlpha () const
 
void SetAlpha (sal_uInt8 cAlpha)
 
- Public Member Functions inherited from Color
constexpr Color ()
 
constexpr Color (sal_uInt32 nColor)
 
constexpr Color (sal_uInt8 nTransparency, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
 
constexpr Color (sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
 
 Color (const basegfx::BColor &rBColor)
 
constexpr operator sal_uInt32 () const
 
constexpr operator sal_Int32 () const
 
bool operator< (const Color &aCompareColor) const
 
void SetRed (sal_uInt8 nRed)
 
sal_uInt8 GetRed () const
 
void SetGreen (sal_uInt8 nGreen)
 
sal_uInt8 GetGreen () const
 
void SetBlue (sal_uInt8 nBlue)
 
sal_uInt8 GetBlue () const
 
void SetTransparency (sal_uInt8 nTransparency)
 
sal_uInt8 GetTransparency () const
 
Color GetRGBColor () const
 
sal_uInt16 GetColorError (const Color &rCompareColor) const
 
sal_uInt8 GetLuminance () const
 
void IncreaseLuminance (sal_uInt8 cLumInc)
 
void DecreaseLuminance (sal_uInt8 cLumDec)
 
void DecreaseContrast (sal_uInt8 cContDec)
 
void ApplyTintOrShade (sal_Int16 n100thPercent)
 
void Invert ()
 
void Merge (const Color &rMergeColor, sal_uInt8 cTransparency)
 
bool IsRGBEqual (const Color &rColor) const
 
bool IsDark () const
 
bool IsBright () const
 
void RGBtoHSB (sal_uInt16 &nHue, sal_uInt16 &nSaturation, sal_uInt16 &nBrightness) const
 
bool operator== (const Color &rColor) const
 
bool operator!= (const Color &rColor) const
 
OUString AsRGBHexString () const
 
basegfx::BColor getBColor () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Color
static Color HSBtoRGB (sal_uInt16 nHue, sal_uInt16 nSaturation, sal_uInt16 nBrightness)
 
- Public Attributes inherited from Color
sal_uInt32 mValue
 
sal_uInt8 B
 
sal_uInt8 G
 
sal_uInt8 R
 
sal_uInt8 A
 

Detailed Description

Definition at line 26 of file BitmapColor.hxx.

Constructor & Destructor Documentation

BitmapColor::BitmapColor ( )
inline

Definition at line 42 of file BitmapColor.hxx.

constexpr BitmapColor::BitmapColor ( sal_uInt8  cRed,
sal_uInt8  cGreen,
sal_uInt8  cBlue,
sal_uInt8  cAlpha = 0 
)

Definition at line 51 of file BitmapColor.hxx.

BitmapColor::BitmapColor ( const Color rColor)
inline

Definition at line 46 of file BitmapColor.hxx.

BitmapColor::BitmapColor ( sal_uInt8  cIndex)
inlineexplicit

Definition at line 56 of file BitmapColor.hxx.

References SetIndex().

Member Function Documentation

sal_uInt8 BitmapColor::GetAlpha ( ) const
inline
sal_uInt8 BitmapColor::GetIndex ( ) const
inline
void BitmapColor::SetAlpha ( sal_uInt8  cAlpha)
inline

Definition at line 76 of file BitmapColor.hxx.

References Color::SetTransparency().

void BitmapColor::SetIndex ( sal_uInt8  cIndex)
inline

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