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

#include <QtBitmap.hxx>

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

Public Member Functions

 QtBitmap ()
 
 QtBitmap (const QImage &rQImage)
 
const QImage * GetQImage () const
 
virtual bool Create (const Size &rSize, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPal) 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
 
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
 
- 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
 

Private Attributes

std::unique_ptr< QImage > m_pImage
 
BitmapPalette m_aPalette
 

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 28 of file qt5/QtBitmap.hxx.

Constructor & Destructor Documentation

◆ QtBitmap() [1/2]

QtBitmap::QtBitmap ( )

◆ QtBitmap() [2/2]

QtBitmap::QtBitmap ( const QImage &  rQImage)

Member Function Documentation

◆ AcquireBuffer()

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

Implements SalBitmap.

◆ Create() [1/5]

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

Implements SalBitmap.

◆ Create() [2/5]

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

Implements SalBitmap.

◆ Create() [3/5]

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

Implements SalBitmap.

◆ Create() [4/5]

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

Implements SalBitmap.

◆ Create() [5/5]

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

Implements SalBitmap.

◆ Destroy()

virtual void QtBitmap::Destroy ( )
finaloverridevirtual

Implements SalBitmap.

◆ GetBitCount()

virtual sal_uInt16 QtBitmap::GetBitCount ( ) const
overridevirtual

Implements SalBitmap.

◆ GetQImage()

const QImage * QtBitmap::GetQImage ( ) const
inline

Definition at line 37 of file qt5/QtBitmap.hxx.

References m_pImage.

◆ GetSize()

virtual Size QtBitmap::GetSize ( ) const
overridevirtual

Implements SalBitmap.

◆ GetSystemData()

virtual bool QtBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

◆ ReleaseBuffer()

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

Implements SalBitmap.

◆ Replace()

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

Implements SalBitmap.

◆ Scale()

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

Implements SalBitmap.

◆ ScalingSupported()

virtual bool QtBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

Member Data Documentation

◆ m_aPalette

BitmapPalette QtBitmap::m_aPalette
private

Definition at line 31 of file qt5/QtBitmap.hxx.

◆ m_pImage

std::unique_ptr<QImage> QtBitmap::m_pImage
private

Definition at line 30 of file qt5/QtBitmap.hxx.

Referenced by GetQImage().


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