![]() |
Qt 6.x
The Qt SDK
|
Functions | |
VGPath | qPainterPathToVGPath (const QPainterPath &path) |
void | qDrawTiled (VGImage image, const QSize imageSize, const QRectF &targetRect, const QPointF offset, float scaleX, float scaleY) |
void | qDrawBorderImage (VGImage image, const QSizeF &textureSize, const QRectF &targetRect, const QRectF &innerTargetRect, const QRectF &subSourceRect) |
void | qDrawSubImage (VGImage image, const QRectF &sourceRect, const QPointF &destOffset) |
const QVector< VGfloat > | qColorToVGColor (const QColor &color, float opacity) |
VGImageFormat | qImageFormatToVGImageFormat (QImage::Format format) |
QImage::Format | qVGImageFormatToQImageFormat (VGImageFormat format) |
Definition at line 298 of file qsgopenvghelpers.cpp.
Referenced by QSGOpenVGRenderer::render(), QSGOpenVGInternalRectangleNode::render(), QSGOpenVGRectangleNode::render(), QSGOpenVGGlyphNode::setColor(), and QSGOpenVGGlyphNode::setStyleColor().
void QSGOpenVGHelpers::qDrawBorderImage | ( | VGImage | image, |
const QSizeF & | textureSize, | ||
const QRectF & | targetRect, | ||
const QRectF & | innerTargetRect, | ||
const QRectF & | subSourceRect | ||
) |
Definition at line 184 of file qsgopenvghelpers.cpp.
References QMarginsF::bottom(), QRectF::bottom(), QRectF::height(), QSizeF::height(), QMarginsF::left(), QRectF::left(), qDrawSubImage(), qDrawTiled(), qMax(), QMarginsF::right(), QRectF::right(), QRectF::size(), QMarginsF::top(), QRectF::top(), QRectF::topLeft(), QSizeF::toSize(), QRectF::width(), QSizeF::width(), QRectF::x(), and QRectF::y().
Referenced by QSGOpenVGInternalImageNode::render(), and QSGOpenVGNinePatchNode::render().
void QSGOpenVGHelpers::qDrawSubImage | ( | VGImage | image, |
const QRectF & | sourceRect, | ||
const QPointF & | destOffset | ||
) |
Definition at line 277 of file qsgopenvghelpers.cpp.
References QList< T >::constData(), QList< T >::data(), QRectF::height(), QRectF::width(), QPointF::x(), QRectF::x(), QPointF::y(), and QRectF::y().
Referenced by qDrawBorderImage().
void QSGOpenVGHelpers::qDrawTiled | ( | VGImage | image, |
const QSize | imageSize, | ||
const QRectF & | targetRect, | ||
const QPointF | offset, | ||
float | scaleX, | ||
float | scaleY | ||
) |
Definition at line 115 of file qsgopenvghelpers.cpp.
References QList< T >::constData(), QList< T >::data(), QRectF::height(), qFuzzyCompare(), qRound(), QRectF::width(), QRectF::x(), and QRectF::y().
Referenced by qDrawBorderImage(), and QSGOpenVGInternalImageNode::render().
VGImageFormat QSGOpenVGHelpers::qImageFormatToVGImageFormat | ( | QImage::Format | format | ) |
Definition at line 310 of file qsgopenvghelpers.cpp.
References QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_Grayscale8, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB16, QImage::Format_RGB32, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, and QImage::Format_RGBX8888.
Referenced by QSGOpenVGTexture::QSGOpenVGTexture().
VGPath QSGOpenVGHelpers::qPainterPathToVGPath | ( | const QPainterPath & | path | ) |
Definition at line 11 of file qsgopenvghelpers.cpp.
References QPainterPath::CurveToDataElement, QPainterPath::CurveToElement, i, QPainterPath::LineToElement, QPainterPath::MoveToElement, QPainterPath::Element::type, QPointF::x(), QPainterPath::Element::x, QPointF::y(), and QPainterPath::Element::y.
QImage::Format QSGOpenVGHelpers::qVGImageFormatToQImageFormat | ( | VGImageFormat | format | ) |
Definition at line 355 of file qsgopenvghelpers.cpp.
References QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_Grayscale8, QImage::Format_Mono, QImage::Format_RGB16, QImage::Format_RGB32, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, and QImage::Format_RGBX8888.