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

#include <salbmp.h>

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

Public Member Functions

void ImplRemovedFromCache ()
 
bool ImplCreateFromDrawable (Drawable aDrawable, SalX11Screen nXScreen, tools::Long nDrawableDepth, tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)
 
XImage * ImplCreateXImage (SalDisplay const *pSalDisp, SalX11Screen nXScreen, tools::Long nDepth, const SalTwoRect &rTwoRect) const
 
ImplSalDDBImplGetDDB (Drawable, SalX11Screen nXScreen, tools::Long nDrawableDepth, const SalTwoRect &) const
 
void ImplDraw (Drawable aDrawable, SalX11Screen nXScreen, tools::Long nDrawableDepth, const SalTwoRect &rTwoRect, const GC &rGC) const
 
 X11SalBitmap ()
 
virtual ~X11SalBitmap () override
 
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 ePixelFormat) 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
 
- 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 ()
 

Static Public Member Functions

static void ImplCreateCache ()
 
static void ImplDestroyCache ()
 

Static Public Attributes

static ImplSalBitmapCachempCache
 
static unsigned int mnCacheInstCount
 

Static Private Member Functions

static std::unique_ptr< BitmapBufferImplCreateDIB (const Size &rSize, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPal)
 
static std::unique_ptr< BitmapBufferImplCreateDIB (Drawable aDrawable, SalX11Screen nXScreen, tools::Long nDrawableDepth, tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, bool bGrey)
 

Private Attributes

std::unique_ptr< BitmapBuffermpDIB
 
std::unique_ptr< ImplSalDDBmpDDB
 
bool mbGrey
 

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 37 of file unx/salbmp.h.

Constructor & Destructor Documentation

◆ X11SalBitmap()

X11SalBitmap::X11SalBitmap ( )

◆ ~X11SalBitmap()

virtual X11SalBitmap::~X11SalBitmap ( )
overridevirtual

Member Function Documentation

◆ AcquireBuffer()

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

Implements SalBitmap.

◆ Create() [1/5]

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

Implements SalBitmap.

◆ Create() [2/5]

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

Implements SalBitmap.

◆ Create() [3/5]

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

Implements SalBitmap.

◆ Create() [4/5]

virtual bool X11SalBitmap::Create ( const SalBitmap rSalBmp,
vcl::PixelFormat  ePixelFormat 
)
overridevirtual

Implements SalBitmap.

◆ Create() [5/5]

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

Implements SalBitmap.

◆ Destroy()

virtual void X11SalBitmap::Destroy ( )
overridevirtual

Implements SalBitmap.

◆ GetBitCount()

virtual sal_uInt16 X11SalBitmap::GetBitCount ( ) const
overridevirtual

Implements SalBitmap.

◆ GetSize()

virtual Size X11SalBitmap::GetSize ( ) const
overridevirtual

Implements SalBitmap.

◆ GetSystemData()

virtual bool X11SalBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

◆ ImplCreateCache()

static void X11SalBitmap::ImplCreateCache ( )
static

◆ ImplCreateDIB() [1/2]

static std::unique_ptr< BitmapBuffer > X11SalBitmap::ImplCreateDIB ( const Size rSize,
vcl::PixelFormat  ePixelFormat,
const BitmapPalette rPal 
)
staticprivate

◆ ImplCreateDIB() [2/2]

static std::unique_ptr< BitmapBuffer > X11SalBitmap::ImplCreateDIB ( Drawable  aDrawable,
SalX11Screen  nXScreen,
tools::Long  nDrawableDepth,
tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
bool  bGrey 
)
staticprivate

◆ ImplCreateFromDrawable()

bool X11SalBitmap::ImplCreateFromDrawable ( Drawable  aDrawable,
SalX11Screen  nXScreen,
tools::Long  nDrawableDepth,
tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)

◆ ImplCreateXImage()

XImage * X11SalBitmap::ImplCreateXImage ( SalDisplay const *  pSalDisp,
SalX11Screen  nXScreen,
tools::Long  nDepth,
const SalTwoRect rTwoRect 
) const

◆ ImplDestroyCache()

static void X11SalBitmap::ImplDestroyCache ( )
static

◆ ImplDraw()

void X11SalBitmap::ImplDraw ( Drawable  aDrawable,
SalX11Screen  nXScreen,
tools::Long  nDrawableDepth,
const SalTwoRect rTwoRect,
const GC &  rGC 
) const

◆ ImplGetDDB()

ImplSalDDB * X11SalBitmap::ImplGetDDB ( Drawable  ,
SalX11Screen  nXScreen,
tools::Long  nDrawableDepth,
const SalTwoRect  
) const

◆ ImplRemovedFromCache()

void X11SalBitmap::ImplRemovedFromCache ( )

◆ ReleaseBuffer()

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

Implements SalBitmap.

◆ Replace()

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

Implements SalBitmap.

◆ Scale()

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

Implements SalBitmap.

◆ ScalingSupported()

virtual bool X11SalBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

Member Data Documentation

◆ mbGrey

bool X11SalBitmap::mbGrey
private

Definition at line 73 of file unx/salbmp.h.

◆ mnCacheInstCount

unsigned int X11SalBitmap::mnCacheInstCount
static

Definition at line 63 of file unx/salbmp.h.

◆ mpCache

ImplSalBitmapCache* X11SalBitmap::mpCache
static

Definition at line 62 of file unx/salbmp.h.

◆ mpDDB

std::unique_ptr<ImplSalDDB> X11SalBitmap::mpDDB
mutableprivate

Definition at line 72 of file unx/salbmp.h.

◆ mpDIB

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

Definition at line 71 of file unx/salbmp.h.


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