LibreOffice Module canvas (master) 1
Public Member Functions | Private Attributes | List of all members
dxcanvas::DXBitmap Class Reference

#include <dx_bitmap.hxx>

Inheritance diagram for dxcanvas::DXBitmap:
[legend]
Collaboration diagram for dxcanvas::DXBitmap:
[legend]

Public Member Functions

 DXBitmap (const BitmapSharedPtr &rBitmap, bool bWithAlpha)
 
 DXBitmap (const ::basegfx::B2ISize &rSize, bool bWithAlpha)
 
virtual GraphicsSharedPtr getGraphics () override
 
virtual BitmapSharedPtr getBitmap () const override
 
virtual ::basegfx::B2ISize getSize () const override
 
virtual bool hasAlpha () const override
 
css::uno::Sequence< sal_Int8getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
void setData (const css::uno::Sequence< sal_Int8 > &data, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
void setPixel (const css::uno::Sequence< sal_Int8 > &color, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
css::uno::Sequence< sal_Int8getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual BitmapSharedPtr getBitmap () const =0
 
virtual ::basegfx::B2ISize getSize () const =0
 
virtual bool hasAlpha () const =0
 
virtual css::uno::Sequence< sal_Int8getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect)=0
 
virtual void setData (const css::uno::Sequence< sal_Int8 > &data, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect)=0
 
virtual void setPixel (const css::uno::Sequence< sal_Int8 > &color, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos)=0
 
virtual css::uno::Sequence< sal_Int8getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos)=0
 
- Public Member Functions inherited from dxcanvas::GraphicsProvider
 GraphicsProvider ()=default
 
virtual ~GraphicsProvider ()
 
 GraphicsProvider (const GraphicsProvider &)=delete
 make noncopyable More...
 
GraphicsProvideroperator= (const GraphicsProvider &)=delete
 
virtual GraphicsSharedPtr getGraphics ()=0
 

Private Attributes

GDIPlusUserSharedPtr mpGdiPlusUser
 
::basegfx::B2ISize maSize
 
BitmapSharedPtr mpBitmap
 
GraphicsSharedPtr mpGraphics
 
bool mbAlpha
 

Detailed Description

Definition at line 35 of file dx_bitmap.hxx.

Constructor & Destructor Documentation

◆ DXBitmap() [1/2]

dxcanvas::DXBitmap::DXBitmap ( const BitmapSharedPtr rBitmap,
bool  bWithAlpha 
)

Definition at line 40 of file dx_bitmap.cxx.

References createInstance(), and mpBitmap.

◆ DXBitmap() [2/2]

dxcanvas::DXBitmap::DXBitmap ( const ::basegfx::B2ISize rSize,
bool  bWithAlpha 
)

Member Function Documentation

◆ getBitmap()

BitmapSharedPtr dxcanvas::DXBitmap::getBitmap ( ) const
overridevirtual

Implements dxcanvas::IBitmap.

Definition at line 77 of file dx_bitmap.cxx.

References mpBitmap.

◆ getData()

uno::Sequence< sal_Int8 > dxcanvas::DXBitmap::getData ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerRectangle2D &  rect 
)
overridevirtual

◆ getGraphics()

GraphicsSharedPtr dxcanvas::DXBitmap::getGraphics ( )
overridevirtual

Implements dxcanvas::GraphicsProvider.

Definition at line 82 of file dx_bitmap.cxx.

References mpGraphics.

◆ getPixel()

uno::Sequence< sal_Int8 > dxcanvas::DXBitmap::getPixel ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerPoint2D &  pos 
)
overridevirtual

◆ getSize()

basegfx::B2ISize dxcanvas::DXBitmap::getSize ( ) const
overridevirtual

Implements dxcanvas::IBitmap.

Definition at line 87 of file dx_bitmap.cxx.

References maSize.

◆ hasAlpha()

bool dxcanvas::DXBitmap::hasAlpha ( ) const
overridevirtual

Implements dxcanvas::IBitmap.

Definition at line 92 of file dx_bitmap.cxx.

References mbAlpha.

◆ setData()

void dxcanvas::DXBitmap::setData ( const css::uno::Sequence< sal_Int8 > &  data,
const css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerRectangle2D &  rect 
)
overridevirtual

◆ setPixel()

void dxcanvas::DXBitmap::setPixel ( const css::uno::Sequence< sal_Int8 > &  color,
const css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerPoint2D &  pos 
)
overridevirtual

Member Data Documentation

◆ maSize

::basegfx::B2ISize dxcanvas::DXBitmap::maSize
private

Definition at line 70 of file dx_bitmap.hxx.

Referenced by DXBitmap(), getPixel(), getSize(), and setPixel().

◆ mbAlpha

bool dxcanvas::DXBitmap::mbAlpha
private

Definition at line 76 of file dx_bitmap.hxx.

Referenced by DXBitmap(), and hasAlpha().

◆ mpBitmap

BitmapSharedPtr dxcanvas::DXBitmap::mpBitmap
private

Definition at line 72 of file dx_bitmap.hxx.

Referenced by DXBitmap(), getBitmap(), getData(), getPixel(), setData(), and setPixel().

◆ mpGdiPlusUser

GDIPlusUserSharedPtr dxcanvas::DXBitmap::mpGdiPlusUser
private

Definition at line 67 of file dx_bitmap.hxx.

◆ mpGraphics

GraphicsSharedPtr dxcanvas::DXBitmap::mpGraphics
private

Definition at line 73 of file dx_bitmap.hxx.

Referenced by DXBitmap(), and getGraphics().


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