LibreOffice Module canvas (master) 1
|
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_Int8 > | argbToIntSequence (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) |
css::uno::Sequence< sal_Int8 > dxcanvas::tools::argbToIntSequence | ( | Gdiplus::ARGB | rColor | ) |
Definition at line 349 of file dx_impltools.cxx.
Referenced by dxcanvas::DXBitmap::getPixel(), and dxcanvas::DXSurfaceBitmap::getPixel().
basegfx::B2DPoint dxcanvas::tools::b2dPointFromGdiPlusPointF | ( | const Gdiplus::PointF & | rPoint | ) |
Definition at line 337 of file dx_impltools.cxx.
basegfx::B2DRange dxcanvas::tools::b2dRangeFromGdiPlusRectF | ( | const Gdiplus::RectF & | rRect | ) |
Definition at line 342 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 | ) |
Definition at line 522 of file dx_impltools.cxx.
References createGraphicsFromBitmap(), drawVCLBitmapFromXBitmap(), dxcanvas::BitmapProvider::getBitmap(), and setupGraphics().
CanvasFont::ImplRef dxcanvas::tools::canvasFontFromXFont | ( | const css::uno::Reference< css::rendering::XCanvasFont > & | xFont | ) |
CanvasFont::ImplRef dxcanvas::tools::canvasFontFromXFont | ( | const uno::Reference< rendering::XCanvasFont > & | xFont | ) |
Definition at line 573 of file dx_impltools.cxx.
References ENSURE_ARG_OR_THROW.
Referenced by dxcanvas::TextLayoutDrawHelper::drawText(), and dxcanvas::TextLayoutDrawHelper::queryTextBounds().
GraphicsSharedPtr dxcanvas::tools::createGraphicsFromBitmap | ( | const BitmapSharedPtr & | rBitmap | ) |
Definition at line 135 of file dx_impltools.cxx.
References setupGraphics().
Referenced by bitmapFromXBitmap(), dxcanvas::DXBitmap::DXBitmap(), and dxcanvas::DXSurfaceBitmap::init().
Gdiplus::Graphics * dxcanvas::tools::createGraphicsFromHDC | ( | HDC | aHDC | ) |
Definition at line 128 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 480 of file dx_impltools.cxx.
References 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().
bool dxcanvas::tools::drawRGBABits | ( | const std::shared_ptr< Gdiplus::Graphics > & | rGraphics, |
const RawRGBABitmap & | rRawRGBAData | ||
) |
Definition at line 492 of file dx_impltools.cxx.
References aBmpData, drawGdiPlusBitmap(), dxcanvas::tools::RawRGBABitmap::maBitmapData, dxcanvas::tools::RawRGBABitmap::mnHeight, and dxcanvas::tools::RawRGBABitmap::mnWidth.
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 290 of file dx_vcltools.cxx.
References vcl::unotools::bitmapExFromXBitmap(), and BitmapEx::IsEmpty().
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 153 of file dx_impltools.cxx.
void dxcanvas::tools::gdiPlusMatrixFromB2DHomMatrix | ( | Gdiplus::Matrix & | rGdiplusMatrix, |
const ::basegfx::B2DHomMatrix & | rMatrix | ||
) |
Definition at line 143 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 307 of file dx_impltools.cxx.
Gdiplus::Rect dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D | ( | const css::geometry::IntegerRectangle2D & | ) |
References RECT.
Gdiplus::Rect dxcanvas::tools::gdiPlusRectFromIntegerRectangle2D | ( | const geometry::IntegerRectangle2D & | rRect | ) |
Definition at line 299 of file dx_impltools.cxx.
Referenced by dxcanvas::DXBitmap::getData(), dxcanvas::DXSurfaceBitmap::getData(), dxcanvas::DXBitmap::setData(), and dxcanvas::DXSurfaceBitmap::setData().
RECT dxcanvas::tools::gdiRectFromB2IRect | ( | const ::basegfx::B2IRange & | rRect | ) |
Definition at line 315 of file dx_impltools.cxx.
References RECT.
GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromB2DPolygon | ( | const ::basegfx::B2DPolygon & | rPoly, |
bool | bNoLineJoin | ||
) |
Definition at line 430 of file dx_impltools.cxx.
References graphicsPathFromB2DPolygon().
Referenced by graphicsPathFromB2DPolygon(), and graphicsPathFromB2DPolyPolygon().
GraphicsPathSharedPtr dxcanvas::tools::graphicsPathFromB2DPolyPolygon | ( | const ::basegfx::B2DPolyPolygon & | rPoly, |
bool | bNoLineJoin | ||
) |
Definition at line 440 of file dx_impltools.cxx.
References graphicsPathFromB2DPolygon().
Referenced by dxcanvas::LinePolyPolygon::getGraphicsPath(), and graphicsPathFromXPolyPolygon2D().
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 403 of file dx_impltools.cxx.
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 | ||
) |
Definition at line 457 of file dx_impltools.cxx.
References dxcanvas::LinePolyPolygon::getGraphicsPath(), graphicsPathFromB2DPolyPolygon(), and polyPolygonFromXPolyPolygon2D().
::basegfx::B2DPolyPolygon dxcanvas::tools::polyPolygonFromXPolyPolygon2D | ( | const css::uno::Reference< css::rendering::XPolyPolygon2D > & | ) |
::basegfx::B2DPolyPolygon dxcanvas::tools::polyPolygonFromXPolyPolygon2D | ( | const uno::Reference< rendering::XPolyPolygon2D > & | xPoly | ) |
Definition at line 57 of file dx_impltools.cxx.
References ENSURE_ARG_OR_THROW, and basegfx::unotools::UnoPolyPolygon::getPolyPolygon().
Referenced by dxcanvas::TextLayoutDrawHelper::drawText(), graphicsPathFromXPolyPolygon2D(), and dxcanvas::SpriteHelper::redraw().
css::geometry::RealPoint2D dxcanvas::tools::realPoint2DFromGdiPlusPointF | ( | const Gdiplus::PointF & | rPoint | ) |
Definition at line 325 of file dx_impltools.cxx.
css::geometry::RealRectangle2D dxcanvas::tools::realRectangle2DFromGdiPlusRectF | ( | const Gdiplus::RectF & | rRect | ) |
Definition at line 330 of file dx_impltools.cxx.
Gdiplus::ARGB dxcanvas::tools::sequenceToArgb | ( | const css::uno::Sequence< double > & | rColor | ) |
Gdiplus::ARGB dxcanvas::tools::sequenceToArgb | ( | const css::uno::Sequence< sal_Int8 > & | rColor | ) |
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().
Gdiplus::ARGB dxcanvas::tools::sequenceToArgb | ( | const uno::Sequence< sal_Int8 > & | rColor | ) |
Definition at line 361 of file dx_impltools.cxx.
References ENSURE_OR_THROW.
Referenced by dxcanvas::CanvasHelper::drawPoint(), dxcanvas::DXBitmap::setPixel(), and dxcanvas::DXSurfaceBitmap::setPixel().
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.
void dxcanvas::tools::setupGraphics | ( | Gdiplus::Graphics & | rGraphics | ) |
Definition at line 104 of file dx_impltools.cxx.
Referenced by bitmapFromXBitmap(), createGraphicsFromBitmap(), createGraphicsFromHDC(), and dxcanvas::createSurfaceGraphics().