45 #include <QtCore/QVariant> 46 #include <QtCore/QDebug> 47 #include <QtGui/QImage> 77 qWarning(
"QTgaHandler::canRead() called with no device");
The QVariant class acts like a union for the most common Qt data types.
Compression compression() const
void setFormat(const QByteArray &format)
Sets the format of the QImageIOHandler to format.
#define QT_END_NAMESPACE
This macro expands to.
void setOption(ImageOption option, const QVariant &value)
Sets the option option with the value value.
bool isNull() const
Returns true if it is a null image, otherwise returns false.
The QByteArray class provides an array of bytes.
QVariant option(ImageOption option) const
Returns the value assigned to option as a QVariant.
bool supportsOption(ImageOption option) const
Returns true if the QImageIOHandler supports the option option; otherwise returns false...
QImage readImage()
Reads an image file from the QTgaFile's device, and returns it.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool canRead() const
Returns true if an image can be read from the device (i.
ImageOption
This enum describes the different options supported by QImageIOHandler.
Q_CORE_EXPORT void qWarning(const char *,...)
The QImage class provides a hardware-independent image representation that allows direct access to th...
QByteArray name() const
Use format() instead.
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt...
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
bool read(QImage *image)
Read an image from the device, and stores it in image.
The QIODevice class is the base interface class of all I/O devices in Qt.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...