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

#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)
 
virtual bool Create (const Size &rSize, vcl::PixelFormat ePixelFormat, 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, vcl::PixelFormat eNewPixelFormat) 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
 
virtual const basegfx::SystemDependentDataHolderaccessSystemDependentDataHolder () const override
 
template<class T , class... Args>
std::shared_ptr< T > addOrReplaceSystemDependentData (Args &&... args) const
 
template<class T >
std::shared_ptr< T > getSystemDependentData () 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 &)
 
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 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, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPal)
 
static HANDLE ImplCopyDIBOrDDB (HANDLE hHdl, bool bDIB)
 
static sal_uInt16 ImplGetDIBColorCount (HGLOBAL hDIB)
 

Private Member Functions

std::shared_ptr< Gdiplus::Bitmap > ImplCreateGdiPlusBitmap (const WinSalBitmap &rAlphaSource)
 
std::shared_ptr< Gdiplus::Bitmap > ImplCreateGdiPlusBitmap ()
 

Private Attributes

Size maSize
 
HGLOBAL mhDIB
 
HBITMAP mhDDB
 
sal_uInt16 mnBitCount
 

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

Constructor & Destructor Documentation

◆ WinSalBitmap()

WinSalBitmap::WinSalBitmap ( )

◆ ~WinSalBitmap()

virtual WinSalBitmap::~WinSalBitmap ( )
overridevirtual

Member Function Documentation

◆ accessSystemDependentDataHolder()

virtual const basegfx::SystemDependentDataHolder * WinSalBitmap::accessSystemDependentDataHolder ( ) const
overridevirtual

Reimplemented from SalBitmap.

◆ AcquireBuffer()

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

Implements SalBitmap.

◆ addOrReplaceSystemDependentData()

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

Definition at line 173 of file salbmp.hxx.

◆ Create() [1/6]

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

Implements SalBitmap.

◆ Create() [2/6]

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

Implements SalBitmap.

◆ Create() [3/6]

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

Implements SalBitmap.

◆ Create() [4/6]

virtual bool WinSalBitmap::Create ( const SalBitmap rSalBmpImpl,
vcl::PixelFormat  eNewPixelFormat 
)
overridevirtual

Implements SalBitmap.

◆ Create() [5/6]

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

Implements SalBitmap.

◆ Create() [6/6]

bool WinSalBitmap::Create ( HANDLE  hBitmap)

◆ Destroy()

virtual void WinSalBitmap::Destroy ( )
overridevirtual

Implements SalBitmap.

◆ GetBitCount()

virtual sal_uInt16 WinSalBitmap::GetBitCount ( ) const
inlineoverridevirtual

Implements SalBitmap.

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

References mnBitCount.

◆ GetSize()

virtual Size WinSalBitmap::GetSize ( ) const
inlineoverridevirtual

Implements SalBitmap.

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

References maSize.

◆ GetSystemData()

virtual bool WinSalBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

◆ getSystemDependentData()

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

Definition at line 164 of file salbmp.hxx.

◆ ImplCopyDIBOrDDB()

static HANDLE WinSalBitmap::ImplCopyDIBOrDDB ( HANDLE  hHdl,
bool  bDIB 
)
static

◆ ImplCreateDIB()

static HGLOBAL WinSalBitmap::ImplCreateDIB ( const Size rSize,
vcl::PixelFormat  ePixelFormat,
const BitmapPalette rPal 
)
static

◆ ImplCreateGdiPlusBitmap() [1/2]

std::shared_ptr< Gdiplus::Bitmap > WinSalBitmap::ImplCreateGdiPlusBitmap ( )
private

◆ ImplCreateGdiPlusBitmap() [2/2]

std::shared_ptr< Gdiplus::Bitmap > WinSalBitmap::ImplCreateGdiPlusBitmap ( const WinSalBitmap rAlphaSource)
private

◆ ImplGetDIBColorCount()

static sal_uInt16 WinSalBitmap::ImplGetDIBColorCount ( HGLOBAL  hDIB)
static

◆ ImplGetGdiPlusBitmap()

std::shared_ptr< Gdiplus::Bitmap > WinSalBitmap::ImplGetGdiPlusBitmap ( const WinSalBitmap pAlphaSource = nullptr) const

◆ ImplGethDDB()

HBITMAP WinSalBitmap::ImplGethDDB ( ) const
inline

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

References mhDDB.

◆ ImplGethDIB()

HGLOBAL WinSalBitmap::ImplGethDIB ( ) const
inline

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

References mhDIB.

◆ ReleaseBuffer()

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

Implements SalBitmap.

◆ Replace()

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

Implements SalBitmap.

◆ Scale()

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

Implements SalBitmap.

◆ ScalingSupported()

virtual bool WinSalBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

Member Data Documentation

◆ maSize

Size WinSalBitmap::maSize
private

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

Referenced by GetSize().

◆ mhDDB

HBITMAP WinSalBitmap::mhDDB
private

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

Referenced by ImplGethDDB().

◆ mhDIB

HGLOBAL WinSalBitmap::mhDIB
private

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

Referenced by ImplGethDIB().

◆ mnBitCount

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: