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

#include <salbmp.h>

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

Public Member Functions

HGLOBAL ImplGethDIB () const
 
HBITMAP ImplGethDDB () const
 
std::shared_ptr< Gdiplus::Bitmap > ImplGetGdiPlusBitmap (const WinSalBitmap *pAlphaSource=nullptr) const
 
 WinSalBitmap ()
 
virtual ~WinSalBitmap () override
 
bool Create (HANDLE hBitmap, bool bDIB, bool bCopyHandle)
 
virtual bool Create (const Size &rSize, sal_uInt16 nBitCount, const BitmapPalette &rPal) override
 
virtual bool Create (const SalBitmap &rSalBmpImpl) override
 
virtual bool Create (const SalBitmap &rSalBmpImpl, SalGraphics *pGraphics) override
 
virtual bool Create (const SalBitmap &rSalBmpImpl, sal_uInt16 nNewBitCount) override
 
virtual bool Create (const css::uno::Reference< css::rendering::XBitmapCanvas > &rBitmapCanvas, Size &rSize, bool bMask=false) override
 
virtual void Destroy () 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 ()
 
void DropScaledCache ()
 
virtual bool ConvertToGreyscale ()
 
void GetChecksum (BitmapChecksum &rChecksum) 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
 

Static Public Member Functions

static HGLOBAL ImplCreateDIB (const Size &rSize, sal_uInt16 nBitCount, const BitmapPalette &rPal)
 
static HANDLE ImplCopyDIBOrDDB (HANDLE hHdl, bool bDIB)
 
static sal_uInt16 ImplGetDIBColorCount (HGLOBAL hDIB)
 
static void ImplDecodeRLEBuffer (const BYTE *pSrcBuf, BYTE *pDstBuf, const Size &rSizePixel, bool bRLE4)
 

Private Member Functions

Gdiplus::Bitmap * ImplCreateGdiPlusBitmap (const WinSalBitmap &rAlphaSource)
 
Gdiplus::Bitmap * ImplCreateGdiPlusBitmap ()
 

Private Attributes

Size maSize
 
HGLOBAL mhDIB
 
HBITMAP mhDDB
 
sal_uInt16 mnBitCount
 

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 36 of file win/salbmp.h.

Constructor & Destructor Documentation

WinSalBitmap::WinSalBitmap ( )
virtual WinSalBitmap::~WinSalBitmap ( )
overridevirtual

Member Function Documentation

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

Implements SalBitmap.

template<class T , class... Args>
std::shared_ptr<T> WinSalBitmap::addOrReplaceSystemDependentData ( basegfx::SystemDependentDataManager manager,
Args &&...  args 
) const
inline
bool WinSalBitmap::Create ( HANDLE  hBitmap,
bool  bDIB,
bool  bCopyHandle 
)
virtual bool WinSalBitmap::Create ( const Size rSize,
sal_uInt16  nBitCount,
const BitmapPalette rPal 
)
overridevirtual

Implements SalBitmap.

virtual bool WinSalBitmap::Create ( const SalBitmap rSalBmpImpl)
overridevirtual

Implements SalBitmap.

virtual bool WinSalBitmap::Create ( const SalBitmap rSalBmpImpl,
SalGraphics pGraphics 
)
overridevirtual

Implements SalBitmap.

virtual bool WinSalBitmap::Create ( const SalBitmap rSalBmpImpl,
sal_uInt16  nNewBitCount 
)
overridevirtual

Implements SalBitmap.

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

Implements SalBitmap.

virtual void WinSalBitmap::Destroy ( )
overridevirtual

Implements SalBitmap.

virtual sal_uInt16 WinSalBitmap::GetBitCount ( ) const
inlineoverridevirtual

Implements SalBitmap.

Definition at line 80 of file win/salbmp.h.

References mnBitCount.

virtual Size WinSalBitmap::GetSize ( ) const
inlineoverridevirtual

Implements SalBitmap.

Definition at line 79 of file win/salbmp.h.

References maSize.

virtual bool WinSalBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

template<class T >
std::shared_ptr<T> WinSalBitmap::getSystemDependentData ( ) const
inline
static HANDLE WinSalBitmap::ImplCopyDIBOrDDB ( HANDLE  hHdl,
bool  bDIB 
)
static
static HGLOBAL WinSalBitmap::ImplCreateDIB ( const Size rSize,
sal_uInt16  nBitCount,
const BitmapPalette rPal 
)
static
Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap ( const WinSalBitmap rAlphaSource)
private
Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap ( )
private
static void WinSalBitmap::ImplDecodeRLEBuffer ( const BYTE pSrcBuf,
BYTE pDstBuf,
const Size rSizePixel,
bool  bRLE4 
)
static
static sal_uInt16 WinSalBitmap::ImplGetDIBColorCount ( HGLOBAL  hDIB)
static
std::shared_ptr< Gdiplus::Bitmap > WinSalBitmap::ImplGetGdiPlusBitmap ( const WinSalBitmap pAlphaSource = nullptr) const
HBITMAP WinSalBitmap::ImplGethDDB ( ) const
inline

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

References mhDDB.

HGLOBAL WinSalBitmap::ImplGethDIB ( ) const
inline

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

References mhDIB.

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

Implements SalBitmap.

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

Implements SalBitmap.

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

Implements SalBitmap.

virtual bool WinSalBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

Member Data Documentation

Size WinSalBitmap::maSize
private

Definition at line 39 of file win/salbmp.h.

Referenced by GetSize().

HBITMAP WinSalBitmap::mhDDB
private

Definition at line 41 of file win/salbmp.h.

Referenced by ImplGethDDB().

HGLOBAL WinSalBitmap::mhDIB
private

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

Referenced by ImplGethDIB().

sal_uInt16 WinSalBitmap::mnBitCount
private

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

Referenced by GetBitCount().


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