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, 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
 
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)
 
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 BitmapBufferAcquireBuffer (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::SystemDependentDataHolderaccessSystemDependentDataHolder () 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_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 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)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ QuartzSalBitmap()

QuartzSalBitmap::QuartzSalBitmap ( )

◆ ~QuartzSalBitmap()

virtual QuartzSalBitmap::~QuartzSalBitmap ( )
overridevirtual

Member Function Documentation

◆ AcquireBuffer()

BitmapBuffer * QuartzSalBitmap::AcquireBuffer ( BitmapAccessMode  nMode)
overridevirtual

Implements SalBitmap.

◆ AllocateUserData()

bool QuartzSalBitmap::AllocateUserData ( )
private

◆ ConvertBitmapData()

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

◆ Create() [1/6]

bool QuartzSalBitmap::Create ( CGLayerHolder const &  rLayerHolder,
int  nBitCount,
int  nX,
int  nY,
int  nWidth,
int  nHeight,
bool  bFlipped 
)

◆ Create() [2/6]

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

Implements SalBitmap.

◆ Create() [3/6]

bool QuartzSalBitmap::Create ( const SalBitmap rSalBmp)
overridevirtual

Implements SalBitmap.

◆ Create() [4/6]

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

Implements SalBitmap.

◆ Create() [5/6]

bool QuartzSalBitmap::Create ( const SalBitmap rSalBmp,
vcl::PixelFormat  eNewPixelFormat 
)
overridevirtual

Implements SalBitmap.

◆ Create() [6/6]

bool QuartzSalBitmap::Create ( const Size rSize,
vcl::PixelFormat  ePixelFormat,
const BitmapPalette rPal 
)
overridevirtual

Implements SalBitmap.

◆ CreateColorMask()

virtual CGImageRef QuartzSalBitmap::CreateColorMask ( int  nX,
int  nY,
int  nWidth,
int  nHeight,
Color  nMaskColor 
) const
overridevirtual

◆ CreateContext()

bool QuartzSalBitmap::CreateContext ( )
private

◆ CreateCroppedImage()

virtual CGImageRef QuartzSalBitmap::CreateCroppedImage ( int  nX,
int  nY,
int  nWidth,
int  nHeight 
) const
overridevirtual

◆ CreateWithMask()

virtual CGImageRef QuartzSalBitmap::CreateWithMask ( const SalBitmap rMask,
int  nX,
int  nY,
int  nWidth,
int  nHeight 
) const
overridevirtual

◆ Destroy()

void QuartzSalBitmap::Destroy ( )
overridevirtual

Implements SalBitmap.

◆ DestroyContext()

void QuartzSalBitmap::DestroyContext ( )
private

◆ doDestroy()

void QuartzSalBitmap::doDestroy ( )

◆ GetBitCount()

sal_uInt16 QuartzSalBitmap::GetBitCount ( ) const
overridevirtual

Implements SalBitmap.

◆ GetSize()

Size QuartzSalBitmap::GetSize ( ) const
overridevirtual

Implements SalBitmap.

◆ GetSystemData()

bool QuartzSalBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

◆ ReleaseBuffer()

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

Implements SalBitmap.

◆ Replace()

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

Implements SalBitmap.

◆ Scale()

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

Implements SalBitmap.

◆ ScalingSupported()

bool QuartzSalBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

Member Data Documentation

◆ m_pContextBuffer

std::shared_ptr<sal_uInt8> QuartzSalBitmap::m_pContextBuffer

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

◆ m_pUserBuffer

std::shared_ptr<sal_uInt8> QuartzSalBitmap::m_pUserBuffer

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

◆ maGraphicContext

CGContextHolder QuartzSalBitmap::maGraphicContext

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

◆ maPalette

BitmapPalette QuartzSalBitmap::maPalette

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

◆ mnBits

sal_uInt16 QuartzSalBitmap::mnBits

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

◆ mnBytesPerRow

sal_uInt32 QuartzSalBitmap::mnBytesPerRow

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

◆ mnHeight

int QuartzSalBitmap::mnHeight

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

◆ mnWidth

int QuartzSalBitmap::mnWidth

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

◆ mxCachedImage

CGImageRef QuartzSalBitmap::mxCachedImage
mutable

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


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