LibreOffice Module cppcanvas (master) 1
Functions
cppcanvas::internal::BitmapActionFactory Namespace Reference

Creates encapsulated converters between GDIMetaFile and XCanvas. More...

Functions

std::shared_ptr< ActioncreateBitmapAction (const ::BitmapEx &, const ::basegfx::B2DPoint &rDstPoint, const CanvasSharedPtr &, const OutDevState &)
 Unscaled bitmap action, only references destination point. More...
 
std::shared_ptr< ActioncreateBitmapAction (const ::BitmapEx &, const ::basegfx::B2DPoint &rDstPoint, const ::basegfx::B2DVector &rDstSize, const CanvasSharedPtr &, const OutDevState &)
 Scaled bitmap action, dest point and dest size. More...
 

Detailed Description

Creates encapsulated converters between GDIMetaFile and XCanvas.

The Canvas argument is deliberately placed at the constructor, to force reconstruction of this object for a new canvas. This considerably eases internal state handling, since a lot of the internal state (e.g. fonts, text layout) is Canvas-dependent.

Function Documentation

◆ createBitmapAction() [1/2]

std::shared_ptr< Action > cppcanvas::internal::BitmapActionFactory::createBitmapAction ( const ::BitmapEx rBmpEx,
const ::basegfx::B2DPoint rDstPoint,
const ::basegfx::B2DVector rDstSize,
const CanvasSharedPtr rCanvas,
const OutDevState rState 
)

Scaled bitmap action, dest point and dest size.

Definition at line 203 of file bitmapaction.cxx.

◆ createBitmapAction() [2/2]

std::shared_ptr< Action > cppcanvas::internal::BitmapActionFactory::createBitmapAction ( const ::BitmapEx rBmpEx,
const ::basegfx::B2DPoint rDstPoint,
const CanvasSharedPtr rCanvas,
const OutDevState rState 
)

Unscaled bitmap action, only references destination point.

Definition at line 195 of file bitmapaction.cxx.

Referenced by cppcanvas::internal::ImplRenderer::createActions().