LibreOffice Module vcl (master) 1
|
#include <salbmp.hxx>
Public Member Functions | |
SalBitmap () | |
virtual | ~SalBitmap () |
virtual bool | Create (const Size &rSize, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPal)=0 |
virtual bool | Create (const SalBitmap &rSalBmp)=0 |
virtual bool | Create (const SalBitmap &rSalBmp, SalGraphics *pGraphics)=0 |
virtual bool | Create (const SalBitmap &rSalBmp, vcl::PixelFormat eNewPixelFormat)=0 |
virtual bool | Create (const css::uno::Reference< css::rendering::XBitmapCanvas > &rBitmapCanvas, Size &rSize, bool bMask=false)=0 |
virtual void | Destroy ()=0 |
virtual Size | GetSize () const =0 |
virtual sal_uInt16 | GetBitCount () const =0 |
virtual BitmapBuffer * | AcquireBuffer (BitmapAccessMode nMode)=0 |
virtual void | ReleaseBuffer (BitmapBuffer *pBuffer, BitmapAccessMode nMode)=0 |
virtual bool | GetSystemData (BitmapSystemData &rData)=0 |
virtual bool | ScalingSupported () const =0 |
virtual bool | Scale (const double &rScaleX, const double &rScaleY, BmpScaleFlag nScaleFlag)=0 |
void | DropScaledCache () |
virtual bool | Replace (const Color &rSearchColor, const Color &rReplaceColor, sal_uInt8 nTol)=0 |
virtual bool | ConvertToGreyscale () |
virtual bool | InterpretAs8Bit () |
virtual bool | Erase (const Color &) |
virtual bool | AlphaBlendWith (const SalBitmap &) |
virtual bool | Invert () |
BitmapChecksum | GetChecksum () const |
void | InvalidateChecksum () |
virtual const basegfx::SystemDependentDataHolder * | accessSystemDependentDataHolder () const |
template<class T > | |
std::shared_ptr< T > | getSystemDependentData () const |
template<class T , class... Args> | |
std::shared_ptr< T > | addOrReplaceSystemDependentData (Args &&... args) const |
Protected Types | |
enum class | BitConvert { A8 , RGBA , BGRA , LAST = BGRA } |
Protected Member Functions | |
void | updateChecksum () const |
Static Protected Member Functions | |
static std::unique_ptr< sal_uInt8[] > | convertDataBitCount (const sal_uInt8 *src, int width, int height, int bitCount, int bytesPerRow, const BitmapPalette &palette, BitConvert type) |
Private Attributes | |
BitmapChecksum | mnChecksum |
bool | mbChecksumValid |
Definition at line 51 of file salbmp.hxx.
|
strongprotected |
Enumerator | |
---|---|
A8 | |
RGBA | |
BGRA | |
LAST |
Definition at line 147 of file salbmp.hxx.
|
inline |
Definition at line 55 of file salbmp.hxx.
|
virtual |
Definition at line 198 of file salvtables.cxx.
References DropScaledCache().
|
virtual |
Reimplemented in SvpSalBitmap, and WinSalBitmap.
Definition at line 328 of file salbmp.cxx.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
Referenced by updateChecksum().
|
inline |
Definition at line 173 of file salbmp.hxx.
References args.
|
inlinevirtual |
Reimplemented in SkiaSalBitmap.
Definition at line 102 of file salbmp.hxx.
|
staticprotected |
Definition at line 250 of file salbmp.cxx.
References A8, BGRA, COL_BLACK(), COL_WHITE(), Color::GetBlue(), BitmapPalette::GetEntryCount(), Color::GetGreen(), Color::GetRed(), BitmapPalette::IsGreyPalette8Bit(), RGBA, type, and y.
|
inlinevirtual |
Reimplemented in SkiaSalBitmap.
Definition at line 88 of file salbmp.hxx.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
pure virtual |
Implemented in QtBitmap, QuartzSalBitmap, SkiaSalBitmap, WinSalBitmap, and SvpSalBitmap.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, SkiaSalBitmap, QuartzSalBitmap, and WinSalBitmap.
void SalBitmap::DropScaledCache | ( | ) |
Definition at line 186 of file salvtables.cxx.
References ImplGetSVData().
Referenced by ~SalBitmap().
|
inlinevirtual |
Reimplemented in SkiaSalBitmap.
Definition at line 97 of file salbmp.hxx.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
inline |
Definition at line 131 of file salbmp.hxx.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
inline |
Definition at line 164 of file salbmp.hxx.
References basegfx::SystemDependentDataHolder::getSystemDependentData().
|
inlinevirtual |
Reimplemented in SkiaSalBitmap.
Definition at line 92 of file salbmp.hxx.
|
inline |
Definition at line 139 of file salbmp.hxx.
|
inlinevirtual |
Reimplemented in SkiaSalBitmap.
Definition at line 107 of file salbmp.hxx.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
Referenced by updateChecksum().
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
pure virtual |
Implemented in SvpSalBitmap, QtBitmap, QuartzSalBitmap, SkiaSalBitmap, and WinSalBitmap.
|
protected |
Definition at line 35 of file salbmp.cxx.
References AcquireBuffer(), BitmapPalette::GetChecksum(), BitmapBuffer::maPalette, mbChecksumValid, BitmapBuffer::mnBitCount, mnChecksum, BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, BitmapBuffer::mnWidth, BitmapBuffer::mpBits, N1BitMsbPal, Read, ReleaseBuffer(), RemoveScanline(), scanlineChecksum(), TopDown, vcl_get_checksum(), and y.
|
private |
Definition at line 193 of file salbmp.hxx.
Referenced by updateChecksum().
|
private |
Definition at line 192 of file salbmp.hxx.
Referenced by updateChecksum().