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

#include <salbmp.h>

Inheritance diagram for QuartzSalBitmap:
[legend]
Collaboration diagram for QuartzSalBitmap:
[legend]

Public Member Functions

 QuartzSalBitmap ()
 
virtual ~QuartzSalBitmap () override
 
bool Create (const Size &rSize, sal_uInt16 nBitCount, const BitmapPalette &rPal) override
 
bool Create (const SalBitmap &rSalBmp) override
 
bool Create (const SalBitmap &rSalBmp, SalGraphics *pGraphics) override
 
bool Create (const SalBitmap &rSalBmp, sal_uInt16 nNewBitCount) 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
 
BitmapBufferAcquireBuffer (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)
 
CGImageRef CreateWithMask (const QuartzSalBitmap &rMask, int nX, int nY, int nWidth, int nHeight) const
 
CGImageRef CreateColorMask (int nX, int nY, int nWidth, int nHeight, Color nMaskColor) const
 
CGImageRef CreateCroppedImage (int nX, int nY, int nWidth, int nHeight) const
 
- Public Member Functions inherited from SalBitmap
 SalBitmap ()
 
virtual ~SalBitmap ()
 
void DropScaledCache ()
 
virtual bool ConvertToGreyscale ()
 
void GetChecksum (BitmapChecksum &rChecksum) const
 
void InvalidateChecksum ()
 

Public Attributes

CGContextHolder maGraphicContext
 
CGImageRef mxCachedImage
 
BitmapPalette maPalette
 
std::shared_ptr< sal_uInt8m_pUserBuffer
 
std::shared_ptr< sal_uInt8m_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 Member Functions inherited from SalBitmap
virtual void updateChecksum () const
 
- Protected Attributes inherited from SalBitmap
BitmapChecksum mnChecksum
 
bool mbChecksumValid
 

Detailed Description

Definition at line 40 of file quartz/salbmp.h.

Constructor & Destructor Documentation

QuartzSalBitmap::QuartzSalBitmap ( )
virtual QuartzSalBitmap::~QuartzSalBitmap ( )
overridevirtual

Member Function Documentation

BitmapBuffer* QuartzSalBitmap::AcquireBuffer ( BitmapAccessMode  nMode)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::AllocateUserData ( )
private
void QuartzSalBitmap::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 
)
private
bool QuartzSalBitmap::Create ( const Size rSize,
sal_uInt16  nBitCount,
const BitmapPalette rPal 
)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::Create ( const SalBitmap rSalBmp)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::Create ( const SalBitmap rSalBmp,
SalGraphics pGraphics 
)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::Create ( const SalBitmap rSalBmp,
sal_uInt16  nNewBitCount 
)
overridevirtual

Implements SalBitmap.

virtual bool QuartzSalBitmap::Create ( const css::uno::Reference< css::rendering::XBitmapCanvas > &  rBitmapCanvas,
Size rSize,
bool  bMask = false 
)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::Create ( CGLayerHolder const &  rLayerHolder,
int  nBitCount,
int  nX,
int  nY,
int  nWidth,
int  nHeight,
bool  bFlipped 
)
CGImageRef QuartzSalBitmap::CreateColorMask ( int  nX,
int  nY,
int  nWidth,
int  nHeight,
Color  nMaskColor 
) const
bool QuartzSalBitmap::CreateContext ( )
private
CGImageRef QuartzSalBitmap::CreateCroppedImage ( int  nX,
int  nY,
int  nWidth,
int  nHeight 
) const
CGImageRef QuartzSalBitmap::CreateWithMask ( const QuartzSalBitmap rMask,
int  nX,
int  nY,
int  nWidth,
int  nHeight 
) const
void QuartzSalBitmap::Destroy ( )
overridevirtual

Implements SalBitmap.

void QuartzSalBitmap::DestroyContext ( )
private
sal_uInt16 QuartzSalBitmap::GetBitCount ( ) const
overridevirtual

Implements SalBitmap.

Size QuartzSalBitmap::GetSize ( ) const
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

void QuartzSalBitmap::ReleaseBuffer ( BitmapBuffer pBuffer,
BitmapAccessMode  nMode 
)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::Replace ( const Color rSearchColor,
const Color rReplaceColor,
sal_uInt8  nTol 
)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::Scale ( const double &  rScaleX,
const double &  rScaleY,
BmpScaleFlag  nScaleFlag 
)
overridevirtual

Implements SalBitmap.

bool QuartzSalBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

Member Data Documentation

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.

CGImageRef QuartzSalBitmap::mxCachedImage
mutable

Definition at line 44 of file quartz/salbmp.h.


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