QLImageSequence Class
#include <QLayers/qlimagesequence.h>
Public Functions
QLImageSequence(QDir dir) | |
QLImageSequence(QFile file) | |
QImage* | frame(int i) |
void | save(QFile file) |
qsizetype | size() const |
Detailed Description
A QLImageSequence stores a series of images arranged in a specific order which can be played back to create the illusion of motion.
Image sequences are useful for animated icons. The example above is the animated Layers icon. The advantage over using a video format is that sequences can maintain image transparency.
An image sequence can be loaded from a directory of images or from a single file with the imgseq filename extension.
Member Function Documentation
QLImageSequence(QDir dir)
Constructs an image sequence loaded from a directory.
QLImageSequence(QFile file)
Constructs an image sequence loaded from a file.
QImage* frame(int i)
Returns a pointer to the frame specified by i.
void save(QFile file)
Saves the image sequence to the specified file.
qsizetype size() const
Returns the number of frames contained in the image sequence.