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

#include <canvasbitmap.hxx>

Inheritance diagram for vclcanvas::CanvasBitmap:
[legend]
Collaboration diagram for vclcanvas::CanvasBitmap:
[legend]

Public Member Functions

 CanvasBitmap (const ::Size &rSize, bool bAlphaBitmap, css::rendering::XGraphicDevice &rDevice, const OutDevProviderSharedPtr &rOutDevProvider)
 Must be called with locked Solar mutex. More...
 
 CanvasBitmap (const BitmapEx &rBitmap, css::rendering::XGraphicDevice &rDevice, const OutDevProviderSharedPtr &rOutDevProvider)
 Must be called with locked Solar mutex. More...
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual bool repaint (const GraphicObjectSharedPtr &rGrf, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const ::Point &rPt, const ::Size &rSz, const GraphicAttr &rAttr) const override
 
BitmapEx getBitmap () const
 Not threadsafe! Returned object is shared! More...
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32, const css::uno::Any &) override
 
- Public Member Functions inherited from canvas::IntegerBitmapBase< Base >
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void SAL_CALL setData (const css::uno::Sequence< sal_Int8 > &, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void SAL_CALL setPixel (const css::uno::Sequence< sal_Int8 > &, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual css::rendering::IntegerBitmapLayout SAL_CALL getMemoryLayout () override
 
- Public Member Functions inherited from vclcanvas::RepaintTarget
virtual ~RepaintTarget ()
 

Private Attributes

css::uno::Reference< css::rendering::XGraphicDevice > mxDevice
 MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting) More...
 

Detailed Description

Definition at line 55 of file canvasbitmap.hxx.

Constructor & Destructor Documentation

vclcanvas::CanvasBitmap::CanvasBitmap ( const ::Size rSize,
bool  bAlphaBitmap,
css::rendering::XGraphicDevice &  rDevice,
const OutDevProviderSharedPtr rOutDevProvider 
)

Must be called with locked Solar mutex.

Parameters
rSizeSize in pixel of the bitmap to generate
bAlphaBitmapWhen true, bitmap will have an alpha channel
rDeviceReference device, with which bitmap should be compatible
vclcanvas::CanvasBitmap::CanvasBitmap ( const BitmapEx rBitmap,
css::rendering::XGraphicDevice &  rDevice,
const OutDevProviderSharedPtr rOutDevProvider 
)

Must be called with locked Solar mutex.

Member Function Documentation

BitmapEx vclcanvas::CanvasBitmap::getBitmap ( ) const

Not threadsafe! Returned object is shared!

Definition at line 90 of file canvasbitmap.cxx.

Referenced by vclcanvas::tools::bitmapExFromXBitmap(), and getFastPropertyValue().

uno::Any SAL_CALL vclcanvas::CanvasBitmap::getFastPropertyValue ( sal_Int32  nHandle)
overridevirtual

Definition at line 113 of file canvasbitmap.cxx.

References getBitmap().

OUString SAL_CALL vclcanvas::CanvasBitmap::getImplementationName ( )
overridevirtual

Definition at line 75 of file canvasbitmap.cxx.

uno::Sequence< OUString > SAL_CALL vclcanvas::CanvasBitmap::getSupportedServiceNames ( )
overridevirtual

Definition at line 85 of file canvasbitmap.cxx.

virtual bool vclcanvas::CanvasBitmap::repaint ( const GraphicObjectSharedPtr rGrf,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState,
const ::Point &  rPt,
const ::Size rSz,
const GraphicAttr rAttr 
) const
overridevirtual
virtual void SAL_CALL vclcanvas::CanvasBitmap::setFastPropertyValue ( sal_Int32  ,
const css::uno::Any &   
)
inlineoverridevirtual

Definition at line 107 of file canvasbitmap.hxx.

sal_Bool SAL_CALL vclcanvas::CanvasBitmap::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 80 of file canvasbitmap.cxx.

References cppu::supportsService().

Member Data Documentation

css::uno::Reference<css::rendering::XGraphicDevice> vclcanvas::CanvasBitmap::mxDevice
private

MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting)

Definition at line 113 of file canvasbitmap.hxx.


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