LibreOffice Module canvas (master) 1
|
#include <dx_bitmap.hxx>
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_Int8 > | getData (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_Int8 > | getPixel (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_Int8 > | getData (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_Int8 > | getPixel (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... | |
GraphicsProvider & | operator= (const GraphicsProvider &)=delete |
virtual GraphicsSharedPtr | getGraphics ()=0 |
Private Attributes | |
GDIPlusUserSharedPtr | mpGdiPlusUser |
::basegfx::B2ISize | maSize |
BitmapSharedPtr | mpBitmap |
GraphicsSharedPtr | mpGraphics |
bool | mbAlpha |
Definition at line 35 of file dx_bitmap.hxx.
dxcanvas::DXBitmap::DXBitmap | ( | const BitmapSharedPtr & | rBitmap, |
bool | bWithAlpha | ||
) |
Definition at line 40 of file dx_bitmap.cxx.
References createInstance(), and mpBitmap.
dxcanvas::DXBitmap::DXBitmap | ( | const ::basegfx::B2ISize & | rSize, |
bool | bWithAlpha | ||
) |
Definition at line 50 of file dx_bitmap.cxx.
References dxcanvas::tools::createGraphicsFromBitmap(), createInstance(), basegfx::Size2D< typename TYPE >::getHeight(), basegfx::Size2D< typename TYPE >::getWidth(), maSize, mbAlpha, mpBitmap, mpBitmap, and mpGraphics.
|
overridevirtual |
|
overridevirtual |
Implements dxcanvas::IBitmap.
Definition at line 97 of file dx_bitmap.cxx.
References aBmpData, dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D(), and mpBitmap.
|
overridevirtual |
Implements dxcanvas::GraphicsProvider.
Definition at line 82 of file dx_bitmap.cxx.
References mpGraphics.
|
overridevirtual |
Implements dxcanvas::IBitmap.
Definition at line 184 of file dx_bitmap.cxx.
References dxcanvas::tools::argbToIntSequence(), ENSURE_ARG_OR_THROW, basegfx::Size2D< typename TYPE >::getHeight(), basegfx::Size2D< typename TYPE >::getWidth(), maSize, mpBitmap, and pos.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements dxcanvas::IBitmap.
Definition at line 131 of file dx_bitmap.cxx.
References aBmpData, dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D(), and mpBitmap.
|
overridevirtual |
Implements dxcanvas::IBitmap.
Definition at line 164 of file dx_bitmap.cxx.
References ENSURE_ARG_OR_THROW, basegfx::Size2D< typename TYPE >::getHeight(), basegfx::Size2D< typename TYPE >::getWidth(), maSize, mpBitmap, pos, and dxcanvas::tools::sequenceToArgb().
|
private |
Definition at line 70 of file dx_bitmap.hxx.
Referenced by DXBitmap(), getPixel(), getSize(), and setPixel().
|
private |
Definition at line 76 of file dx_bitmap.hxx.
Referenced by DXBitmap(), and hasAlpha().
|
private |
Definition at line 72 of file dx_bitmap.hxx.
Referenced by DXBitmap(), getBitmap(), getData(), getPixel(), setData(), and setPixel().
|
private |
Definition at line 67 of file dx_bitmap.hxx.
|
private |
Definition at line 73 of file dx_bitmap.hxx.
Referenced by DXBitmap(), and getGraphics().