LibreOffice Module vcl (master) 1
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
SalBitmap Class Referenceabstract

#include <salbmp.hxx>

Inheritance diagram for SalBitmap:
[legend]

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 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
 

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
 

Detailed Description

Definition at line 51 of file salbmp.hxx.

Member Enumeration Documentation

◆ BitConvert

enum class SalBitmap::BitConvert
strongprotected
Enumerator
A8 
RGBA 
BGRA 
LAST 

Definition at line 147 of file salbmp.hxx.

Constructor & Destructor Documentation

◆ SalBitmap()

SalBitmap::SalBitmap ( )
inline

Definition at line 55 of file salbmp.hxx.

◆ ~SalBitmap()

SalBitmap::~SalBitmap ( )
virtual

Definition at line 198 of file salvtables.cxx.

References DropScaledCache().

Member Function Documentation

◆ accessSystemDependentDataHolder()

const basegfx::SystemDependentDataHolder * SalBitmap::accessSystemDependentDataHolder ( ) const
virtual

Reimplemented in SvpSalBitmap, and WinSalBitmap.

Definition at line 328 of file salbmp.cxx.

◆ AcquireBuffer()

virtual BitmapBuffer * SalBitmap::AcquireBuffer ( BitmapAccessMode  nMode)
pure virtual

◆ addOrReplaceSystemDependentData()

template<class T , class... Args>
std::shared_ptr< T > SalBitmap::addOrReplaceSystemDependentData ( Args &&...  args) const
inline

Definition at line 173 of file salbmp.hxx.

References args.

◆ AlphaBlendWith()

virtual bool SalBitmap::AlphaBlendWith ( const SalBitmap )
inlinevirtual

Reimplemented in SkiaSalBitmap.

Definition at line 102 of file salbmp.hxx.

◆ convertDataBitCount()

std::unique_ptr< sal_uInt8[] > SalBitmap::convertDataBitCount ( const sal_uInt8 src,
int  width,
int  height,
int  bitCount,
int  bytesPerRow,
const BitmapPalette palette,
BitConvert  type 
)
staticprotected

◆ ConvertToGreyscale()

virtual bool SalBitmap::ConvertToGreyscale ( )
inlinevirtual

Reimplemented in SkiaSalBitmap.

Definition at line 88 of file salbmp.hxx.

◆ Create() [1/5]

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

◆ Create() [2/5]

virtual bool SalBitmap::Create ( const SalBitmap rSalBmp)
pure virtual

◆ Create() [3/5]

virtual bool SalBitmap::Create ( const SalBitmap rSalBmp,
SalGraphics pGraphics 
)
pure virtual

◆ Create() [4/5]

virtual bool SalBitmap::Create ( const SalBitmap rSalBmp,
vcl::PixelFormat  eNewPixelFormat 
)
pure virtual

◆ Create() [5/5]

virtual bool SalBitmap::Create ( const Size rSize,
vcl::PixelFormat  ePixelFormat,
const BitmapPalette rPal 
)
pure virtual

◆ Destroy()

virtual void SalBitmap::Destroy ( )
pure virtual

◆ DropScaledCache()

void SalBitmap::DropScaledCache ( )

Definition at line 186 of file salvtables.cxx.

References ImplGetSVData().

Referenced by ~SalBitmap().

◆ Erase()

virtual bool SalBitmap::Erase ( const Color )
inlinevirtual

Reimplemented in SkiaSalBitmap.

Definition at line 97 of file salbmp.hxx.

◆ GetBitCount()

virtual sal_uInt16 SalBitmap::GetBitCount ( ) const
pure virtual

◆ GetChecksum()

BitmapChecksum SalBitmap::GetChecksum ( ) const
inline

Definition at line 131 of file salbmp.hxx.

◆ GetSize()

virtual Size SalBitmap::GetSize ( ) const
pure virtual

◆ GetSystemData()

virtual bool SalBitmap::GetSystemData ( BitmapSystemData rData)
pure virtual

◆ getSystemDependentData()

template<class T >
std::shared_ptr< T > SalBitmap::getSystemDependentData ( ) const
inline

◆ InterpretAs8Bit()

virtual bool SalBitmap::InterpretAs8Bit ( )
inlinevirtual

Reimplemented in SkiaSalBitmap.

Definition at line 92 of file salbmp.hxx.

◆ InvalidateChecksum()

void SalBitmap::InvalidateChecksum ( )
inline

Definition at line 139 of file salbmp.hxx.

◆ Invert()

virtual bool SalBitmap::Invert ( )
inlinevirtual

Reimplemented in SkiaSalBitmap.

Definition at line 107 of file salbmp.hxx.

◆ ReleaseBuffer()

virtual void SalBitmap::ReleaseBuffer ( BitmapBuffer pBuffer,
BitmapAccessMode  nMode 
)
pure virtual

◆ Replace()

virtual bool SalBitmap::Replace ( const Color rSearchColor,
const Color rReplaceColor,
sal_uInt8  nTol 
)
pure virtual

◆ Scale()

virtual bool SalBitmap::Scale ( const double &  rScaleX,
const double &  rScaleY,
BmpScaleFlag  nScaleFlag 
)
pure virtual

◆ ScalingSupported()

virtual bool SalBitmap::ScalingSupported ( ) const
pure virtual

◆ updateChecksum()

void SalBitmap::updateChecksum ( ) const
protected

Member Data Documentation

◆ mbChecksumValid

bool SalBitmap::mbChecksumValid
private

Definition at line 193 of file salbmp.hxx.

Referenced by updateChecksum().

◆ mnChecksum

BitmapChecksum SalBitmap::mnChecksum
private

Definition at line 192 of file salbmp.hxx.

Referenced by updateChecksum().


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