Image provider that rasterizes an SVG (or any QImage-loadable Qt resource). More...
#include <ColoredSvgImageProvider.h>
Public Member Functions | |
| ColoredSvgImageProvider () | |
| QImage | requestImage (const QString &id, QSize *size, const QSize &requestedSize) final |
Static Public Attributes | |
| static constexpr const char * | ProviderId = "coloredsvg" |
Image provider that rasterizes an SVG (or any QImage-loadable Qt resource).
and recolors its alpha mask with a caller-supplied tint, avoiding the need for a runtime ColorOverlay shader.
URL format: image://coloredsvg/<resource-path>?color=<RRGGBB|AARRGGBB>
Definition at line 12 of file ColoredSvgImageProvider.h.
| ColoredSvgImageProvider::ColoredSvgImageProvider | ( | ) |
Definition at line 11 of file ColoredSvgImageProvider.cc.
References ColoredSvgImageProvider().
Referenced by ColoredSvgImageProvider().
|
final |
Definition at line 16 of file ColoredSvgImageProvider.cc.
|
staticconstexpr |
Definition at line 15 of file ColoredSvgImageProvider.h.