LibreOffice Module vcl (master)
1
|
#include <BitmapPalette.hxx>
Public Types | |
typedef o3tl::cow_wrapper< ImplBitmapPalette > | ImplType |
Public Member Functions | |
SAL_DLLPRIVATE const BitmapColor * | ImplGetColorBuffer () const |
SAL_DLLPRIVATE BitmapColor * | ImplGetColorBuffer () |
BitmapChecksum | GetChecksum () const |
BitmapPalette () | |
BitmapPalette (const BitmapPalette &) | |
BitmapPalette (BitmapPalette &&) noexcept | |
BitmapPalette (std::initializer_list< BitmapColor > aBitmapColor) | |
BitmapPalette (sal_uInt16 nCount) | |
~BitmapPalette () | |
BitmapPalette & | operator= (const BitmapPalette &) |
BitmapPalette & | operator= (BitmapPalette &&) noexcept |
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 BitmapColor & | operator[] (sal_uInt16 nIndex) const |
BitmapColor & | operator[] (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 | |
ImplType | mpImpl |
Friends | |
class | SalBitmap |
class | BitmapAccess |
Definition at line 29 of file BitmapPalette.hxx.
Definition at line 72 of file BitmapPalette.hxx.
BitmapPalette::BitmapPalette | ( | ) |
Definition at line 65 of file bitmappalette.cxx.
BitmapPalette::BitmapPalette | ( | const BitmapPalette & | rOther | ) |
Definition at line 70 of file bitmappalette.cxx.
|
noexcept |
Definition at line 75 of file bitmappalette.cxx.
BitmapPalette::BitmapPalette | ( | std::initializer_list< BitmapColor > | aBitmapColor | ) |
Definition at line 80 of file bitmappalette.cxx.
|
explicit |
Definition at line 85 of file bitmappalette.cxx.
BitmapPalette::~BitmapPalette | ( | ) |
Definition at line 90 of file bitmappalette.cxx.
sal_uInt16 BitmapPalette::GetBestIndex | ( | const BitmapColor & | rCol | ) | const |
Definition at line 140 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), Color::GetColorError(), i, mpImpl, and SAL_MAX_UINT16.
Referenced by OutputDevice::EmulateDrawTransparent(), BitmapColorQuantizationFilter::execute(), BitmapInfoAccess::GetBestPaletteIndex(), ImplPALToPAL(), ImplTCToPAL(), vcl::bitmap::ScanlineTransformer_8BitPalette::writePixel(), vcl::bitmap::ScanlineTransformer_4BitPalette::writePixel(), vcl::bitmap::ScanlineTransformer_1BitPalette::writePixel(), and vcl::ScanlineWriter::writeRGB().
BitmapChecksum BitmapPalette::GetChecksum | ( | ) | const |
Definition at line 111 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), mpImpl, and vcl_get_checksum().
Referenced by SalBitmap::updateChecksum().
sal_uInt16 BitmapPalette::GetEntryCount | ( | ) | const |
Definition at line 124 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), and mpImpl.
Referenced by SalBitmap::convertDataBitCount(), OutputDevice::EmulateDrawTransparent(), BitmapSolarizeFilter::execute(), BitmapInfoAccess::GetPaletteEntryCount(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplConvertUp(), Bitmap::ImplMakeGreyscales(), ImplPALToPAL(), InverseColorMap::InverseColorMap(), IsGreyPalette8Bit(), IsGreyPaletteAny(), vcl::bitmap::ScanlineTransformer_8BitPalette::readPixel(), vcl::bitmap::ScanlineTransformer_4BitPalette::readPixel(), and vcl::bitmap::ScanlineTransformer_1BitPalette::readPixel().
const BitmapColor * BitmapPalette::ImplGetColorBuffer | ( | ) | const |
Definition at line 104 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), and mpImpl.
Referenced by ImplPALToTC().
BitmapColor * BitmapPalette::ImplGetColorBuffer | ( | ) |
Definition at line 109 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), and mpImpl.
bool BitmapPalette::IsGreyPalette8Bit | ( | ) | const |
Returns true if the palette is 8-bit grey palette.
Definition at line 196 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), GetEntryCount(), i, and mpImpl.
Referenced by SalBitmap::convertDataBitCount(), Bitmap::HasGreyPalette8Bit(), ImplFastBitmapBlending(), and ImplFastBitmapConversion().
bool BitmapPalette::IsGreyPaletteAny | ( | ) | const |
Returns true if the palette is a grey palette (may not be 8-bit).
Definition at line 170 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), Color::GetBlue(), GetEntryCount(), Color::GetGreen(), Bitmap::GetGreyPalette(), Color::GetRed(), and mpImpl.
Referenced by Bitmap::HasGreyPaletteAny().
bool BitmapPalette::operator! | ( | ) | const |
Definition at line 122 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), and mpImpl.
|
inline |
Definition at line 53 of file BitmapPalette.hxx.
BitmapPalette & BitmapPalette::operator= | ( | const BitmapPalette & | rOther | ) |
Definition at line 92 of file bitmappalette.cxx.
References mpImpl.
|
noexcept |
Definition at line 98 of file bitmappalette.cxx.
References mpImpl.
bool BitmapPalette::operator== | ( | const BitmapPalette & | rBitmapPalette | ) | const |
Definition at line 117 of file bitmappalette.cxx.
References mpImpl.
const BitmapColor & BitmapPalette::operator[] | ( | sal_uInt16 | nIndex | ) | const |
Definition at line 128 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), mpImpl, and size.
BitmapColor & BitmapPalette::operator[] | ( | sal_uInt16 | nIndex | ) |
Definition at line 134 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), mpImpl, and size.
void BitmapPalette::SetEntryCount | ( | sal_uInt16 | nCount | ) |
Definition at line 126 of file bitmappalette.cxx.
References ImplBitmapPalette::GetBitmapData(), and mpImpl.
Referenced by Bitmap::Bitmap(), vcl::unotools::bitmapExFromXBitmap(), Octree::GetPalette(), Bitmap::ImplConvertDown8BPP(), and Bitmap::ImplConvertUp().
|
friend |
Definition at line 32 of file BitmapPalette.hxx.
|
friend |
Definition at line 31 of file BitmapPalette.hxx.
|
private |
Definition at line 75 of file BitmapPalette.hxx.
Referenced by GetBestIndex(), GetChecksum(), GetEntryCount(), ImplGetColorBuffer(), IsGreyPalette8Bit(), IsGreyPaletteAny(), operator!(), operator=(), operator==(), operator[](), and SetEntryCount().