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

#include <BitmapColor.hxx>

Inheritance diagram for BitmapColor:
Collaboration diagram for BitmapColor:

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
sal_uInt8 GetRed () const
sal_uInt8 GetGreen () const
sal_uInt8 GetBlue () const
sal_uInt8 GetTransparency () const
void SetRed (sal_uInt8 nRed)
void SetGreen (sal_uInt8 nGreen)
void SetBlue (sal_uInt8 nBlue)
void SetTransparency (sal_uInt8 nTransparency)
Color GetRGBColor () const
bool IsRGBEqual (const Color &rColor) const
bool operator< (const Color &aCompareColor) const
bool operator> (const Color &aCompareColor) const
bool operator== (const Color &rColor) const
bool operator!= (const Color &rColor) 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)
bool IsDark () const
bool IsBright () const
void ApplyTintOrShade (sal_Int16 n100thPercent)
void Invert ()
void Merge (const Color &rMergeColor, sal_uInt8 cTransparency)
void RGBtoHSB (sal_uInt16 &nHue, sal_uInt16 &nSaturation, sal_uInt16 &nBrightness) const
OUString AsRGBHexString () 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)
static Color STRtoRGB (const OUString &colorname)
- 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 ( )

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)

Definition at line 46 of file BitmapColor.hxx.

BitmapColor::BitmapColor ( sal_uInt8  cIndex)

Definition at line 56 of file BitmapColor.hxx.

References SetIndex().

Member Function Documentation

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

Definition at line 76 of file BitmapColor.hxx.

References Color::SetTransparency().

void BitmapColor::SetIndex ( sal_uInt8  cIndex)

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