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)
 
GraphicsSharedPtr 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

◆ argbToIntSequence()

css::uno::Sequence< sal_Int8 > dxcanvas::tools::argbToIntSequence ( Gdiplus::ARGB  rColor)

◆ b2dPointFromGdiPlusPointF()

basegfx::B2DPoint dxcanvas::tools::b2dPointFromGdiPlusPointF ( const Gdiplus::PointF &  rPoint)

Definition at line 337 of file dx_impltools.cxx.

◆ b2dRangeFromGdiPlusRectF()

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

Definition at line 342 of file dx_impltools.cxx.

◆ bitmapFromXBitmap() [1/2]

BitmapSharedPtr dxcanvas::tools::bitmapFromXBitmap ( const css::uno::Reference< css::rendering::XBitmap > &  xBitmap)

◆ bitmapFromXBitmap() [2/2]

BitmapSharedPtr dxcanvas::tools::bitmapFromXBitmap ( const uno::Reference< rendering::XBitmap > &  xBitmap)

◆ canvasFontFromXFont() [1/2]

CanvasFont::ImplRef dxcanvas::tools::canvasFontFromXFont ( const css::uno::Reference< css::rendering::XCanvasFont > &  xFont)

◆ canvasFontFromXFont() [2/2]

CanvasFont::ImplRef dxcanvas::tools::canvasFontFromXFont ( const uno::Reference< rendering::XCanvasFont > &  xFont)

◆ createGraphicsFromBitmap()

GraphicsSharedPtr dxcanvas::tools::createGraphicsFromBitmap ( const BitmapSharedPtr rBitmap)

◆ createGraphicsFromHDC()

Gdiplus::Graphics * dxcanvas::tools::createGraphicsFromHDC ( HDC  aHDC)

Definition at line 128 of file dx_impltools.cxx.

References setupGraphics().

◆ drawDIBits()

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

Definition at line 480 of file dx_impltools.cxx.

References drawGdiPlusBitmap().

◆ drawGdiPlusBitmap()

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

Definition at line 472 of file dx_impltools.cxx.

Referenced by drawDIBits(), and drawRGBABits().

◆ drawRGBABits()

bool dxcanvas::tools::drawRGBABits ( const std::shared_ptr< Gdiplus::Graphics > &  rGraphics,
const RawRGBABitmap rRawRGBAData 
)

◆ drawVCLBitmapFromXBitmap() [1/2]

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

◆ drawVCLBitmapFromXBitmap() [2/2]

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

Definition at line 290 of file dx_vcltools.cxx.

References vcl::unotools::bitmapExFromXBitmap(), and BitmapEx::IsEmpty().

Referenced by bitmapFromXBitmap().

◆ gdiPlusMatrixFromAffineMatrix2D() [1/2]

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

◆ gdiPlusMatrixFromAffineMatrix2D() [2/2]

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

Definition at line 153 of file dx_impltools.cxx.

◆ gdiPlusMatrixFromB2DHomMatrix()

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

Definition at line 143 of file dx_impltools.cxx.

◆ gdiPlusPointFFromRealPoint2D()

Gdiplus::PointF dxcanvas::tools::gdiPlusPointFFromRealPoint2D ( const css::geometry::RealPoint2D &  )

◆ gdiPlusRectFFromRectangle2D() [1/2]

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

◆ gdiPlusRectFFromRectangle2D() [2/2]

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

Definition at line 307 of file dx_impltools.cxx.

◆ gdiPlusRectFromIntegerRectangle2D() [1/2]

Gdiplus::Rect dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D ( const css::geometry::IntegerRectangle2D &  )

References RECT.

◆ gdiPlusRectFromIntegerRectangle2D() [2/2]

Gdiplus::Rect dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D ( const geometry::IntegerRectangle2D &  rRect)

◆ gdiRectFromB2IRect()

RECT dxcanvas::tools::gdiRectFromB2IRect ( const ::basegfx::B2IRange rRect)

Definition at line 315 of file dx_impltools.cxx.

References RECT.

◆ graphicsPathFromB2DPolygon()

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

◆ graphicsPathFromB2DPolyPolygon()

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromB2DPolyPolygon ( const ::basegfx::B2DPolyPolygon rPoly,
bool  bNoLineJoin 
)

◆ graphicsPathFromRealPoint2DSequence() [1/2]

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromRealPoint2DSequence ( const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &  )

◆ graphicsPathFromRealPoint2DSequence() [2/2]

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromRealPoint2DSequence ( const uno::Sequence< uno::Sequence< geometry::RealPoint2D > > &  points)

Definition at line 403 of file dx_impltools.cxx.

◆ graphicsPathFromXPolyPolygon2D() [1/2]

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromXPolyPolygon2D ( const css::uno::Reference< css::rendering::XPolyPolygon2D > &  ,
bool  bNoLineJoin = false 
)

◆ graphicsPathFromXPolyPolygon2D() [2/2]

GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromXPolyPolygon2D ( const uno::Reference< rendering::XPolyPolygon2D > &  xPoly,
bool  bNoLineJoin 
)

◆ polyPolygonFromXPolyPolygon2D() [1/2]

::basegfx::B2DPolyPolygon dxcanvas::tools::polyPolygonFromXPolyPolygon2D ( const css::uno::Reference< css::rendering::XPolyPolygon2D > &  )

◆ polyPolygonFromXPolyPolygon2D() [2/2]

::basegfx::B2DPolyPolygon dxcanvas::tools::polyPolygonFromXPolyPolygon2D ( const uno::Reference< rendering::XPolyPolygon2D > &  xPoly)

◆ realPoint2DFromGdiPlusPointF()

css::geometry::RealPoint2D dxcanvas::tools::realPoint2DFromGdiPlusPointF ( const Gdiplus::PointF &  rPoint)

Definition at line 325 of file dx_impltools.cxx.

◆ realRectangle2DFromGdiPlusRectF()

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

Definition at line 330 of file dx_impltools.cxx.

◆ sequenceToArgb() [1/4]

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

◆ sequenceToArgb() [2/4]

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

◆ sequenceToArgb() [3/4]

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

Definition at line 377 of file dx_impltools.cxx.

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

◆ sequenceToArgb() [4/4]

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

◆ setModulateImageAttributes()

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

Definition at line 583 of file dx_impltools.cxx.

◆ setupGraphics()

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