LibreOffice Module cppcanvas (master) 1
Public Member Functions | List of all members
cppcanvas::Bitmap Class Referenceabstract

This interface defines a Bitmap canvas object. More...

#include <bitmap.hxx>

Inheritance diagram for cppcanvas::Bitmap:
[legend]
Collaboration diagram for cppcanvas::Bitmap:
[legend]

Public Member Functions

virtual void drawAlphaModulated (double nAlphaModulation) const =0
 Render to parent canvas, with global alpha. More...
 
virtual BitmapCanvasSharedPtr getBitmapCanvas () const =0
 
virtual css::uno::Reference< css::rendering::XBitmap > getUNOBitmap () const =0
 
- Public Member Functions inherited from cppcanvas::CanvasGraphic
virtual ~CanvasGraphic ()
 
virtual void setTransformation (const ::basegfx::B2DHomMatrix &rMatrix)=0
 Set object transformation matrix. More...
 
virtual void setClip (const ::basegfx::B2DPolyPolygon &rClipPoly)=0
 Set object clipping polygon. More...
 
virtual void setClip ()=0
 Clear object clipping polygon. More...
 
virtual void setCompositeOp (sal_Int8 aOp)=0
 Set object composite mode. More...
 
virtual bool draw () const =0
 Render to parent canvas. More...
 

Detailed Description

This interface defines a Bitmap canvas object.

Consider this object part of the view, and not of the model data, as this bitmap can only be painted on its parent canvas

Definition at line 44 of file bitmap.hxx.

Member Function Documentation

◆ drawAlphaModulated()

virtual void cppcanvas::Bitmap::drawAlphaModulated ( double  nAlphaModulation) const
pure virtual

Render to parent canvas, with global alpha.

This method renders the content to the parent canvas, i.e. the canvas this object was constructed for.

Parameters
nAlphaModulationGlobal alpha value, with which each pixel alpha value gets multiplied. For a normal, opaque bitmap, this will make the bitmap appear transparent with the given alpha value (value must be in the range [0,1]).

Implemented in cppcanvas::internal::ImplBitmap.

◆ getBitmapCanvas()

virtual BitmapCanvasSharedPtr cppcanvas::Bitmap::getBitmapCanvas ( ) const
pure virtual

◆ getUNOBitmap()

virtual css::uno::Reference< css::rendering::XBitmap > cppcanvas::Bitmap::getUNOBitmap ( ) const
pure virtual

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