LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | Friends | List of all members
BitmapPalette Class Reference

#include <BitmapPalette.hxx>

Public Member Functions

SAL_DLLPRIVATE const BitmapColorImplGetColorBuffer () const
SAL_DLLPRIVATE BitmapColorImplGetColorBuffer ()
BitmapChecksum GetChecksum () const
 BitmapPalette ()
 BitmapPalette (std::initializer_list< BitmapColor > aBitmapColor)
 BitmapPalette (sal_uInt16 nCount)
bool operator== (const BitmapPalette &rBitmapPalette) const
bool operator!= (const BitmapPalette &rBitmapPalette) const
bool operator! () const
sal_uInt16 GetEntryCount () const
void SetEntryCount (sal_uInt16 nCount)
const BitmapColoroperator[] (sal_uInt16 nIndex) const
BitmapColoroperator[] (sal_uInt16 nIndex)
sal_uInt16 GetBestIndex (const BitmapColor &rCol) const
bool IsGreyPalette8Bit () const
 Returns true if the palette is 8-bit grey palette. More...
bool IsGreyPaletteAny () const
 Returns true if the palette is a grey palette (may not be 8-bit). More...

Private Attributes

std::vector< BitmapColormaBitmapColor


class SalBitmap
class BitmapAccess

Detailed Description

Definition at line 28 of file BitmapPalette.hxx.

Constructor & Destructor Documentation

BitmapPalette::BitmapPalette ( )

Definition at line 56 of file BitmapPalette.hxx.

BitmapPalette::BitmapPalette ( std::initializer_list< BitmapColor aBitmapColor)

Definition at line 60 of file BitmapPalette.hxx.

BitmapPalette::BitmapPalette ( sal_uInt16  nCount)

Definition at line 64 of file BitmapPalette.hxx.

Member Function Documentation

sal_uInt16 BitmapPalette::GetBestIndex ( const BitmapColor rCol) const
BitmapChecksum BitmapPalette::GetChecksum ( ) const

Definition at line 49 of file BitmapPalette.hxx.

References vcl_get_checksum().

Referenced by SalBitmap::updateChecksum().

sal_uInt16 BitmapPalette::GetEntryCount ( ) const
SAL_DLLPRIVATE const BitmapColor* BitmapPalette::ImplGetColorBuffer ( ) const

Definition at line 39 of file BitmapPalette.hxx.

Referenced by ImplPALToTC().

SAL_DLLPRIVATE BitmapColor* BitmapPalette::ImplGetColorBuffer ( )

Definition at line 44 of file BitmapPalette.hxx.

bool BitmapPalette::IsGreyPalette8Bit ( ) const

Returns true if the palette is 8-bit grey palette.

Definition at line 257 of file bitmap/bitmap.cxx.

References GetEntryCount(), i, and maBitmapColor.

Referenced by SalBitmap::convertDataBitCount(), ImplFastBitmapBlending(), and ImplFastBitmapConversion().

bool BitmapPalette::IsGreyPaletteAny ( ) const

Returns true if the palette is a grey palette (may not be 8-bit).

Definition at line 232 of file bitmap/bitmap.cxx.

References Color::GetBlue(), GetEntryCount(), Color::GetGreen(), Bitmap::GetGreyPalette(), Color::GetRed(), and maBitmapColor.

bool BitmapPalette::operator! ( ) const

Definition at line 79 of file BitmapPalette.hxx.

bool BitmapPalette::operator!= ( const BitmapPalette rBitmapPalette) const

Definition at line 74 of file BitmapPalette.hxx.

bool BitmapPalette::operator== ( const BitmapPalette rBitmapPalette) const

Definition at line 69 of file BitmapPalette.hxx.

References maBitmapColor.

const BitmapColor& BitmapPalette::operator[] ( sal_uInt16  nIndex) const

Definition at line 94 of file BitmapPalette.hxx.

BitmapColor& BitmapPalette::operator[] ( sal_uInt16  nIndex)

Definition at line 100 of file BitmapPalette.hxx.

void BitmapPalette::SetEntryCount ( sal_uInt16  nCount)

Friends And Related Function Documentation

friend class BitmapAccess

Definition at line 31 of file BitmapPalette.hxx.

friend class SalBitmap

Definition at line 30 of file BitmapPalette.hxx.

Member Data Documentation

std::vector<BitmapColor> BitmapPalette::maBitmapColor

Definition at line 35 of file BitmapPalette.hxx.

Referenced by IsGreyPalette8Bit(), IsGreyPaletteAny(), and operator==().

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