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::B2IVector &rSize, bool bWithAlpha)
 
virtual GraphicsSharedPtr getGraphics () override
 
virtual BitmapSharedPtr getBitmap () const override
 
virtual ::basegfx::B2IVector 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
 
- Public Member Functions inherited from dxcanvas::GraphicsProvider
 GraphicsProvider ()=default
 
virtual ~GraphicsProvider ()
 
 GraphicsProvider (const GraphicsProvider &)=delete
 make noncopyable More...
 
GraphicsProvideroperator= (const GraphicsProvider &)=delete
 

Private Attributes

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

Detailed Description

Definition at line 36 of file dx_bitmap.hxx.

Constructor & Destructor Documentation

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

Definition at line 38 of file dx_bitmap.cxx.

References createInstance().

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

Member Function Documentation

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

Implements dxcanvas::IBitmap.

Definition at line 77 of file dx_bitmap.cxx.

References mpBitmap.

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

Implements dxcanvas::GraphicsProvider.

Definition at line 82 of file dx_bitmap.cxx.

References mpGraphics.

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

Implements dxcanvas::IBitmap.

Definition at line 87 of file dx_bitmap.cxx.

References maSize.

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

Implements dxcanvas::IBitmap.

Definition at line 92 of file dx_bitmap.cxx.

References mbAlpha.

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

::basegfx::B2IVector dxcanvas::DXBitmap::maSize
private

Definition at line 73 of file dx_bitmap.hxx.

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

bool dxcanvas::DXBitmap::mbAlpha
private

Definition at line 79 of file dx_bitmap.hxx.

Referenced by DXBitmap(), and hasAlpha().

BitmapSharedPtr dxcanvas::DXBitmap::mpBitmap
private

Definition at line 75 of file dx_bitmap.hxx.

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

GDIPlusUserSharedPtr dxcanvas::DXBitmap::mpGdiPlusUser
private

Definition at line 70 of file dx_bitmap.hxx.

GraphicsSharedPtr dxcanvas::DXBitmap::mpGraphics
private

Definition at line 76 of file dx_bitmap.hxx.

Referenced by DXBitmap(), and getGraphics().


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