LibreOffice Module vcl (master) 1
|
#include <salbmp.h>
Public Member Functions | |
QuartzSalBitmap () | |
virtual | ~QuartzSalBitmap () override |
bool | Create (const Size &rSize, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPal) override |
bool | Create (const SalBitmap &rSalBmp) override |
bool | Create (const SalBitmap &rSalBmp, SalGraphics *pGraphics) override |
bool | Create (const SalBitmap &rSalBmp, vcl::PixelFormat eNewPixelFormat) override |
virtual bool | Create (const css::uno::Reference< css::rendering::XBitmapCanvas > &rBitmapCanvas, Size &rSize, bool bMask=false) override |
void | Destroy () override |
Size | GetSize () const override |
sal_uInt16 | GetBitCount () const override |
BitmapBuffer * | AcquireBuffer (BitmapAccessMode nMode) override |
void | ReleaseBuffer (BitmapBuffer *pBuffer, BitmapAccessMode nMode) override |
bool | GetSystemData (BitmapSystemData &rData) override |
bool | ScalingSupported () const override |
bool | Scale (const double &rScaleX, const double &rScaleY, BmpScaleFlag nScaleFlag) override |
bool | Replace (const Color &rSearchColor, const Color &rReplaceColor, sal_uInt8 nTol) override |
bool | Create (CGLayerHolder const &rLayerHolder, int nBitCount, int nX, int nY, int nWidth, int nHeight, bool bFlipped) |
virtual CGImageRef | CreateWithMask (const SalBitmap &rMask, int nX, int nY, int nWidth, int nHeight) const override |
virtual CGImageRef | CreateColorMask (int nX, int nY, int nWidth, int nHeight, Color nMaskColor) const override |
virtual CGImageRef | CreateCroppedImage (int nX, int nY, int nWidth, int nHeight) const override |
void | doDestroy () |
Public Member Functions inherited from SalBitmap | |
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 |
Public Attributes | |
CGContextHolder | maGraphicContext |
CGImageRef | mxCachedImage |
BitmapPalette | maPalette |
std::shared_ptr< sal_uInt8 > | m_pUserBuffer |
std::shared_ptr< sal_uInt8 > | m_pContextBuffer |
sal_uInt16 | mnBits |
int | mnWidth |
int | mnHeight |
sal_uInt32 | mnBytesPerRow |
Private Member Functions | |
bool | CreateContext () |
void | DestroyContext () |
bool | AllocateUserData () |
void | ConvertBitmapData (sal_uInt32 nWidth, sal_uInt32 nHeight, sal_uInt16 nDestBits, sal_uInt32 nDestBytesPerRow, const BitmapPalette &rDestPalette, sal_uInt8 *pDestData, sal_uInt16 nSrcBits, sal_uInt32 nSrcBytesPerRow, const BitmapPalette &rSrcPalette, sal_uInt8 *pSrcData) |
Additional Inherited Members | |
Protected Types inherited from SalBitmap | |
enum class | BitConvert { A8 , RGBA , BGRA , LAST = BGRA } |
Protected Member Functions inherited from SalBitmap | |
void | updateChecksum () const |
Static Protected Member Functions inherited from SalBitmap | |
static std::unique_ptr< sal_uInt8[] > | convertDataBitCount (const sal_uInt8 *src, int width, int height, int bitCount, int bytesPerRow, const BitmapPalette &palette, BitConvert type) |
Definition at line 40 of file quartz/salbmp.h.
QuartzSalBitmap::QuartzSalBitmap | ( | ) |
|
overridevirtual |
|
overridevirtual |
Implements SalBitmap.
|
private |
|
private |
bool QuartzSalBitmap::Create | ( | CGLayerHolder const & | rLayerHolder, |
int | nBitCount, | ||
int | nX, | ||
int | nY, | ||
int | nWidth, | ||
int | nHeight, | ||
bool | bFlipped | ||
) |
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
|
private |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements SalBitmap.
|
private |
void QuartzSalBitmap::doDestroy | ( | ) |
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
|
overridevirtual |
Implements SalBitmap.
std::shared_ptr<sal_uInt8> QuartzSalBitmap::m_pContextBuffer |
Definition at line 47 of file quartz/salbmp.h.
std::shared_ptr<sal_uInt8> QuartzSalBitmap::m_pUserBuffer |
Definition at line 46 of file quartz/salbmp.h.
CGContextHolder QuartzSalBitmap::maGraphicContext |
Definition at line 43 of file quartz/salbmp.h.
BitmapPalette QuartzSalBitmap::maPalette |
Definition at line 45 of file quartz/salbmp.h.
sal_uInt16 QuartzSalBitmap::mnBits |
Definition at line 48 of file quartz/salbmp.h.
sal_uInt32 QuartzSalBitmap::mnBytesPerRow |
Definition at line 51 of file quartz/salbmp.h.
int QuartzSalBitmap::mnHeight |
Definition at line 50 of file quartz/salbmp.h.
int QuartzSalBitmap::mnWidth |
Definition at line 49 of file quartz/salbmp.h.
|
mutable |
Definition at line 44 of file quartz/salbmp.h.