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

#include <svpbmp.hxx>

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

Public Member Functions

 SvpSalBitmap ()
 
virtual ~SvpSalBitmap () override
 
virtual bool Create (const Size &rSize, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPalette) override
 
virtual bool Create (const SalBitmap &rSalBmp) override
 
virtual bool Create (const SalBitmap &rSalBmp, SalGraphics *pGraphics) override
 
virtual 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 Create (std::unique_ptr< BitmapBuffer > pBuf)
 
const BitmapBufferGetBuffer () const
 
virtual void Destroy () final override
 
virtual Size GetSize () const override
 
virtual sal_uInt16 GetBitCount () const override
 
virtual BitmapBufferAcquireBuffer (BitmapAccessMode nMode) override
 
virtual void ReleaseBuffer (BitmapBuffer *pBuffer, BitmapAccessMode nMode) override
 
virtual bool GetSystemData (BitmapSystemData &rData) override
 
virtual bool ScalingSupported () const override
 
virtual bool Scale (const double &rScaleX, const double &rScaleY, BmpScaleFlag nScaleFlag) override
 
virtual bool Replace (const Color &rSearchColor, const Color &rReplaceColor, sal_uInt8 nTol) override
 
template<class T >
std::shared_ptr< T > getSystemDependentData () const
 
template<class T , class... Args>
std::shared_ptr< T > addOrReplaceSystemDependentData (basegfx::SystemDependentDataManager &manager, Args &&... args) const
 
- 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 &)
 
BitmapChecksum GetChecksum () const
 
void InvalidateChecksum ()
 
- Public Member Functions inherited from basegfx::SystemDependentDataHolder
 SystemDependentDataHolder ()
 
virtual ~SystemDependentDataHolder ()
 
void addOrReplaceSystemDependentData (SystemDependentData_SharedPtr &rData)
 
SystemDependentData_SharedPtr getSystemDependentData (size_t hash_code) const
 

Private Attributes

std::unique_ptr< BitmapBuffermpDIB
 

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)
 
- Protected Attributes inherited from SalBitmap
BitmapChecksum mnChecksum
 
bool mbChecksumValid
 

Detailed Description

Definition at line 28 of file svpbmp.hxx.

Constructor & Destructor Documentation

◆ SvpSalBitmap()

SvpSalBitmap::SvpSalBitmap ( )

◆ ~SvpSalBitmap()

virtual SvpSalBitmap::~SvpSalBitmap ( )
overridevirtual

Member Function Documentation

◆ AcquireBuffer()

virtual BitmapBuffer * SvpSalBitmap::AcquireBuffer ( BitmapAccessMode  nMode)
overridevirtual

Implements SalBitmap.

◆ addOrReplaceSystemDependentData()

template<class T , class... Args>
std::shared_ptr< T > SvpSalBitmap::addOrReplaceSystemDependentData ( basegfx::SystemDependentDataManager manager,
Args &&...  args 
) const
inline

◆ Create() [1/6]

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

Implements SalBitmap.

◆ Create() [2/6]

virtual bool SvpSalBitmap::Create ( const SalBitmap rSalBmp)
overridevirtual

Implements SalBitmap.

◆ Create() [3/6]

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

Implements SalBitmap.

◆ Create() [4/6]

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

Implements SalBitmap.

◆ Create() [5/6]

virtual bool SvpSalBitmap::Create ( const Size rSize,
vcl::PixelFormat  ePixelFormat,
const BitmapPalette rPalette 
)
overridevirtual

Implements SalBitmap.

◆ Create() [6/6]

void SvpSalBitmap::Create ( std::unique_ptr< BitmapBuffer pBuf)

◆ Destroy()

virtual void SvpSalBitmap::Destroy ( )
finaloverridevirtual

Implements SalBitmap.

◆ GetBitCount()

virtual sal_uInt16 SvpSalBitmap::GetBitCount ( ) const
overridevirtual

Implements SalBitmap.

◆ GetBuffer()

const BitmapBuffer * SvpSalBitmap::GetBuffer ( ) const
inline

Definition at line 48 of file svpbmp.hxx.

◆ GetSize()

virtual Size SvpSalBitmap::GetSize ( ) const
overridevirtual

Implements SalBitmap.

◆ GetSystemData()

virtual bool SvpSalBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

◆ getSystemDependentData()

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

◆ ReleaseBuffer()

virtual void SvpSalBitmap::ReleaseBuffer ( BitmapBuffer pBuffer,
BitmapAccessMode  nMode 
)
overridevirtual

Implements SalBitmap.

◆ Replace()

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

Implements SalBitmap.

◆ Scale()

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

Implements SalBitmap.

◆ ScalingSupported()

virtual bool SvpSalBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

Member Data Documentation

◆ mpDIB

std::unique_ptr<BitmapBuffer> SvpSalBitmap::mpDIB
private

Definition at line 30 of file svpbmp.hxx.


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