QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ColoredSvgImageProvider Class Reference

Image provider that rasterizes an SVG (or any QImage-loadable Qt resource). More...

#include <ColoredSvgImageProvider.h>

Inheritance diagram for ColoredSvgImageProvider:
Collaboration diagram for ColoredSvgImageProvider:

Public Member Functions

 ColoredSvgImageProvider ()
QImage requestImage (const QString &id, QSize *size, const QSize &requestedSize) final

Static Public Attributes

static constexpr const char * ProviderId = "coloredsvg"

Detailed Description

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.

Constructor & Destructor Documentation

◆ ColoredSvgImageProvider()

ColoredSvgImageProvider::ColoredSvgImageProvider ( )

Definition at line 11 of file ColoredSvgImageProvider.cc.

References ColoredSvgImageProvider().

Referenced by ColoredSvgImageProvider().

Member Function Documentation

◆ requestImage()

QImage ColoredSvgImageProvider::requestImage ( const QString & id,
QSize * size,
const QSize & requestedSize )
final

Definition at line 16 of file ColoredSvgImageProvider.cc.

Member Data Documentation

◆ ProviderId

const char* ColoredSvgImageProvider::ProviderId = "coloredsvg"
staticconstexpr

Definition at line 15 of file ColoredSvgImageProvider.h.


The documentation for this class was generated from the following files: