LibreOffice Module canvas (master)  1
Classes | Functions
dxcanvas::tools Namespace Reference

Classes

struct  RawRGBABitmap
 Raw RGBA bitmap data, contiguous in memory. More...
 

Functions

::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D (const uno::Reference< rendering::XPolyPolygon2D > &xPoly)
 
void setupGraphics (Gdiplus::Graphics &rGraphics)
 
Gdiplus::Graphics * createGraphicsFromHDC (HDC aHDC)
 
Gdiplus::Graphics * createGraphicsFromBitmap (const BitmapSharedPtr &rBitmap)
 
void gdiPlusMatrixFromB2DHomMatrix (Gdiplus::Matrix &rGdiplusMatrix, const ::basegfx::B2DHomMatrix &rMatrix)
 
void gdiPlusMatrixFromAffineMatrix2D (Gdiplus::Matrix &rGdiplusMatrix, const geometry::AffineMatrix2D &rMatrix)
 
Gdiplus::Rect gdiPlusRectFromIntegerRectangle2D (const geometry::IntegerRectangle2D &rRect)
 
Gdiplus::RectF gdiPlusRectFFromRectangle2D (const geometry::RealRectangle2D &rRect)
 
RECT gdiRectFromB2IRect (const ::basegfx::B2IRange &rRect)
 
geometry::RealPoint2D realPoint2DFromGdiPlusPointF (const Gdiplus::PointF &rPoint)
 
geometry::RealRectangle2D realRectangle2DFromGdiPlusRectF (const Gdiplus::RectF &rRect)
 
::basegfx::B2DPoint b2dPointFromGdiPlusPointF (const Gdiplus::PointF &rPoint)
 
::basegfx::B2DRange b2dRangeFromGdiPlusRectF (const Gdiplus::RectF &rRect)
 
uno::Sequence< sal_Int8argbToIntSequence (Gdiplus::ARGB rColor)
 
Gdiplus::ARGB sequenceToArgb (const uno::Sequence< sal_Int8 > &rColor)
 
Gdiplus::ARGB sequenceToArgb (const uno::Sequence< double > &rColor)
 
GraphicsPathSharedPtr graphicsPathFromRealPoint2DSequence (const uno::Sequence< uno::Sequence< geometry::RealPoint2D > > &points)
 
GraphicsPathSharedPtr graphicsPathFromB2DPolygon (const ::basegfx::B2DPolygon &rPoly, bool bNoLineJoin)
 
GraphicsPathSharedPtr graphicsPathFromB2DPolyPolygon (const ::basegfx::B2DPolyPolygon &rPoly, bool bNoLineJoin)
 
GraphicsPathSharedPtr graphicsPathFromXPolyPolygon2D (const uno::Reference< rendering::XPolyPolygon2D > &xPoly, bool bNoLineJoin)
 
bool drawGdiPlusBitmap (const GraphicsSharedPtr &rGraphics, const BitmapSharedPtr &rBitmap)
 
bool drawDIBits (const std::shared_ptr< Gdiplus::Graphics > &rGraphics, const BITMAPINFO &rBI, const void *pBits)
 
bool drawRGBABits (const std::shared_ptr< Gdiplus::Graphics > &rGraphics, const RawRGBABitmap &rRawRGBAData)
 
BitmapSharedPtr bitmapFromXBitmap (const uno::Reference< rendering::XBitmap > &xBitmap)
 
CanvasFont::ImplRef canvasFontFromXFont (const uno::Reference< rendering::XCanvasFont > &xFont)
 
void setModulateImageAttributes (Gdiplus::ImageAttributes &o_rAttr, double nRedModulation, double nGreenModulation, double nBlueModulation, double nAlphaModulation)
 
::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D (const css::uno::Reference< css::rendering::XPolyPolygon2D > &)
 
void gdiPlusMatrixFromAffineMatrix2D (Gdiplus::Matrix &rGdiplusMatrix, const css::geometry::AffineMatrix2D &rMatrix)
 
Gdiplus::PointF gdiPlusPointFFromRealPoint2D (const css::geometry::RealPoint2D &)
 
Gdiplus::RectF gdiPlusRectFFromRectangle2D (const css::geometry::RealRectangle2D &)
 
Gdiplus::Rect gdiPlusRectFromIntegerRectangle2D (const css::geometry::IntegerRectangle2D &)
 
Gdiplus::ARGB sequenceToArgb (const css::uno::Sequence< sal_Int8 > &rColor)
 
Gdiplus::ARGB sequenceToArgb (const css::uno::Sequence< double > &rColor)
 
GraphicsPathSharedPtr graphicsPathFromRealPoint2DSequence (const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &)
 
GraphicsPathSharedPtr graphicsPathFromXPolyPolygon2D (const css::uno::Reference< css::rendering::XPolyPolygon2D > &, bool bNoLineJoin=false)
 
BitmapSharedPtr bitmapFromXBitmap (const css::uno::Reference< css::rendering::XBitmap > &xBitmap)
 
CanvasFont::ImplRef canvasFontFromXFont (const css::uno::Reference< css::rendering::XCanvasFont > &xFont)
 
bool drawVCLBitmapFromXBitmap (const std::shared_ptr< Gdiplus::Graphics > &rGraphics, const uno::Reference< rendering::XBitmap > &xBitmap)
 
bool drawVCLBitmapFromXBitmap (const std::shared_ptr< Gdiplus::Graphics > &rGraphics, const css::uno::Reference< css::rendering::XBitmap > &xBitmap)
 

Function Documentation

css::uno::Sequence< sal_Int8 > dxcanvas::tools::argbToIntSequence ( Gdiplus::ARGB  rColor)
basegfx::B2DPoint dxcanvas::tools::b2dPointFromGdiPlusPointF ( const Gdiplus::PointF &  rPoint)

Definition at line 338 of file dx_impltools.cxx.

basegfx::B2DRange dxcanvas::tools::b2dRangeFromGdiPlusRectF ( const Gdiplus::RectF &  rRect)

Definition at line 343 of file dx_impltools.cxx.

BitmapSharedPtr dxcanvas::tools::bitmapFromXBitmap ( const css::uno::Reference< css::rendering::XBitmap > &  xBitmap)
BitmapSharedPtr dxcanvas::tools::bitmapFromXBitmap ( const uno::Reference< rendering::XBitmap > &  xBitmap)
CanvasFont::ImplRef dxcanvas::tools::canvasFontFromXFont ( const css::uno::Reference< css::rendering::XCanvasFont > &  xFont)
CanvasFont::ImplRef dxcanvas::tools::canvasFontFromXFont ( const uno::Reference< rendering::XCanvasFont > &  xFont)
Gdiplus::Graphics * dxcanvas::tools::createGraphicsFromBitmap ( const BitmapSharedPtr rBitmap)
Gdiplus::Graphics * dxcanvas::tools::createGraphicsFromHDC ( HDC  aHDC)

Definition at line 129 of file dx_impltools.cxx.

References setupGraphics().

bool dxcanvas::tools::drawDIBits ( const std::shared_ptr< Gdiplus::Graphics > &  rGraphics,
const BITMAPINFO &  rBI,
const void pBits 
)

Definition at line 483 of file dx_impltools.cxx.

References drawGdiPlusBitmap().

bool dxcanvas::tools::drawGdiPlusBitmap ( const GraphicsSharedPtr rGraphics,
const BitmapSharedPtr rBitmap 
)

Definition at line 475 of file dx_impltools.cxx.

Referenced by drawDIBits(), and drawRGBABits().

bool dxcanvas::tools::drawRGBABits ( const std::shared_ptr< Gdiplus::Graphics > &  rGraphics,
const RawRGBABitmap rRawRGBAData 
)
bool dxcanvas::tools::drawVCLBitmapFromXBitmap ( const std::shared_ptr< Gdiplus::Graphics > &  rGraphics,
const css::uno::Reference< css::rendering::XBitmap > &  xBitmap 
)
bool dxcanvas::tools::drawVCLBitmapFromXBitmap ( const std::shared_ptr< Gdiplus::Graphics > &  rGraphics,
const uno::Reference< rendering::XBitmap > &  xBitmap 
)

Definition at line 455 of file dx_vcltools.cxx.

References vcl::unotools::bitmapExFromXBitmap().

Referenced by bitmapFromXBitmap().

void dxcanvas::tools::gdiPlusMatrixFromAffineMatrix2D ( Gdiplus::Matrix &  rGdiplusMatrix,
const css::geometry::AffineMatrix2D &  rMatrix 
)
void dxcanvas::tools::gdiPlusMatrixFromAffineMatrix2D ( Gdiplus::Matrix &  rGdiplusMatrix,
const geometry::AffineMatrix2D &  rMatrix 
)

Definition at line 154 of file dx_impltools.cxx.

void dxcanvas::tools::gdiPlusMatrixFromB2DHomMatrix ( Gdiplus::Matrix &  rGdiplusMatrix,
const ::basegfx::B2DHomMatrix rMatrix 
)

Definition at line 144 of file dx_impltools.cxx.

Gdiplus::PointF dxcanvas::tools::gdiPlusPointFFromRealPoint2D ( const css::geometry::RealPoint2D &  )
Gdiplus::RectF dxcanvas::tools::gdiPlusRectFFromRectangle2D ( const css::geometry::RealRectangle2D &  )
Gdiplus::RectF dxcanvas::tools::gdiPlusRectFFromRectangle2D ( const geometry::RealRectangle2D &  rRect)

Definition at line 308 of file dx_impltools.cxx.

Gdiplus::Rect dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D ( const css::geometry::IntegerRectangle2D &  )
Gdiplus::Rect dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D ( const geometry::IntegerRectangle2D &  rRect)
RECT dxcanvas::tools::gdiRectFromB2IRect ( const ::basegfx::B2IRange rRect)

Definition at line 316 of file dx_impltools.cxx.

References RECT.

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromB2DPolygon ( const ::basegfx::B2DPolygon rPoly,
bool  bNoLineJoin 
)

Definition at line 433 of file dx_impltools.cxx.

Referenced by graphicsPathFromB2DPolyPolygon().

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromB2DPolyPolygon ( const ::basegfx::B2DPolyPolygon rPoly,
bool  bNoLineJoin 
)
GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromRealPoint2DSequence ( const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &  )
GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromRealPoint2DSequence ( const uno::Sequence< uno::Sequence< geometry::RealPoint2D > > &  points)

Definition at line 405 of file dx_impltools.cxx.

References getLength().

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromXPolyPolygon2D ( const css::uno::Reference< css::rendering::XPolyPolygon2D > &  ,
bool  bNoLineJoin = false 
)
GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromXPolyPolygon2D ( const uno::Reference< rendering::XPolyPolygon2D > &  xPoly,
bool  bNoLineJoin 
)
::basegfx::B2DPolyPolygon dxcanvas::tools::polyPolygonFromXPolyPolygon2D ( const uno::Reference< rendering::XPolyPolygon2D > &  xPoly)
::basegfx::B2DPolyPolygon dxcanvas::tools::polyPolygonFromXPolyPolygon2D ( const css::uno::Reference< css::rendering::XPolyPolygon2D > &  )
css::geometry::RealPoint2D dxcanvas::tools::realPoint2DFromGdiPlusPointF ( const Gdiplus::PointF &  rPoint)

Definition at line 326 of file dx_impltools.cxx.

css::geometry::RealRectangle2D dxcanvas::tools::realRectangle2DFromGdiPlusRectF ( const Gdiplus::RectF &  rRect)

Definition at line 331 of file dx_impltools.cxx.

Gdiplus::ARGB dxcanvas::tools::sequenceToArgb ( const css::uno::Sequence< sal_Int8 > &  rColor)
Gdiplus::ARGB dxcanvas::tools::sequenceToArgb ( const css::uno::Sequence< double > &  rColor)
Gdiplus::ARGB dxcanvas::tools::sequenceToArgb ( const uno::Sequence< sal_Int8 > &  rColor)
Gdiplus::ARGB dxcanvas::tools::sequenceToArgb ( const uno::Sequence< double > &  rColor)

Definition at line 379 of file dx_impltools.cxx.

References ENSURE_OR_THROW, and canvas::tools::verifyRange().

void dxcanvas::tools::setModulateImageAttributes ( Gdiplus::ImageAttributes &  o_rAttr,
double  nRedModulation,
double  nGreenModulation,
double  nBlueModulation,
double  nAlphaModulation 
)

Definition at line 586 of file dx_impltools.cxx.

void dxcanvas::tools::setupGraphics ( Gdiplus::Graphics &  rGraphics)