QLGraphic Class
#include <QLayers/qlgraphic.h>
Public Functions
QLGraphic(const QString& file_path, QSize size = QSize()) | |
QLGraphic(const QImage& image) | |
QLGraphic(const QLGraphic& graphic) | |
QImage* | image() const |
QLImageSequence* | image_sequence() const |
QSize | size() const |
QLSvgRenderer* | svg_renderer() const |
Detailed Description
A QLGraphic stores an image object whose type depends on the image data that represents it.
The stored image object is either a QImage, a QLImageSequence, or a QLSvgRenderer.
Member Function Documentation
Constructs a graphic of size from a loaded file located at file_path.
If the default, invalid size is used, the size is derived from the file.
QLGraphic(const QLGraphic& graphic)
Constructs a copy of graphic.
QImage* image() const
Returns a pointer to the graphic's QImage, if this graphic stores one.
QLImageSequence* image_sequence() const
Returns a pointer to the graphic's QLImageSequence, if this graphic stores one.
QSize size() const
Returns the size (width and height) of the graphic.
QLSvgRenderer* svg_renderer() const
Returns a pointer to the graphic's QLSvgRenderer, if this graphic stores one.