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)
 
constexpr BitmapColor (ColorTransparencyTag, sal_uInt8 cRed, sal_uInt8 cGreen, sal_uInt8 cBlue, sal_uInt8 cTransparency)
 
constexpr BitmapColor (ColorAlphaTag, sal_uInt8 cRed, sal_uInt8 cGreen, sal_uInt8 cBlue, sal_uInt8 cAlpha)
 
 BitmapColor (const Color &rColor)
 
 BitmapColor (sal_uInt8 cIndex)
 
sal_uInt8 GetIndex () const
 
void SetIndex (sal_uInt8 cIndex)
 
- Public Member Functions inherited from Color
constexpr Color ()
 
constexpr Color (const sal_uInt32 nColor)
 
constexpr Color (enum ColorTransparencyTag, sal_uInt32 nColor)
 
constexpr Color (enum ColorAlphaTag, sal_uInt32 nColor)
 
constexpr Color (enum ColorTransparencyTag, sal_uInt8 nTransparency, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
 
constexpr Color (enum ColorAlphaTag, sal_uInt8 nAlpha, 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 GetAlpha () const
 
bool IsTransparent () const
 
bool IsFullyTransparent () const
 
void SetRed (sal_uInt8 nRed)
 
void SetGreen (sal_uInt8 nGreen)
 
void SetBlue (sal_uInt8 nBlue)
 
void SetAlpha (sal_uInt8 nAlpha)
 
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 ApplyLumModOff (sal_Int16 nMod, sal_Int16 nOff)
 
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 (std::u16string_view colorname)
 
- Public Attributes inherited from Color
sal_uInt32 mValue
 
sal_uInt8 B
 
sal_uInt8 G
 
sal_uInt8 R
 
sal_uInt8 T
 

Detailed Description

Definition at line 26 of file BitmapColor.hxx.

Constructor & Destructor Documentation

◆ BitmapColor() [1/6]

BitmapColor::BitmapColor ( )
inline

Definition at line 41 of file BitmapColor.hxx.

◆ BitmapColor() [2/6]

constexpr BitmapColor::BitmapColor ( sal_uInt8  cRed,
sal_uInt8  cGreen,
sal_uInt8  cBlue 
)
constexpr

Definition at line 50 of file BitmapColor.hxx.

◆ BitmapColor() [3/6]

constexpr BitmapColor::BitmapColor ( ColorTransparencyTag  ,
sal_uInt8  cRed,
sal_uInt8  cGreen,
sal_uInt8  cBlue,
sal_uInt8  cTransparency 
)
constexpr

Definition at line 55 of file BitmapColor.hxx.

References ColorTransparency.

◆ BitmapColor() [4/6]

constexpr BitmapColor::BitmapColor ( ColorAlphaTag  ,
sal_uInt8  cRed,
sal_uInt8  cGreen,
sal_uInt8  cBlue,
sal_uInt8  cAlpha 
)
constexpr

Definition at line 60 of file BitmapColor.hxx.

References ColorAlpha.

◆ BitmapColor() [5/6]

BitmapColor::BitmapColor ( const Color rColor)
inline

Definition at line 45 of file BitmapColor.hxx.

◆ BitmapColor() [6/6]

BitmapColor::BitmapColor ( sal_uInt8  cIndex)
inlineexplicit

Definition at line 65 of file BitmapColor.hxx.

References SetIndex().

Member Function Documentation

◆ GetIndex()

sal_uInt8 BitmapColor::GetIndex ( ) const
inline

◆ SetIndex()

void BitmapColor::SetIndex ( sal_uInt8  cIndex)
inline

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