42 #ifndef QIMAGEREADER_H 43 #define QIMAGEREADER_H 45 #include <QtCore/qbytearray.h> 46 #include <QtGui/qimage.h> 47 #include <QtGui/qimageiohandler.h> 81 void setAutoDetectImageFormat(
bool enabled);
82 bool autoDetectImageFormat()
const;
84 void setDecideFormatFromContent(
bool ignored);
85 bool decideFormatFromContent()
const;
90 void setFileName(
const QString &fileName);
100 void setClipRect(
const QRect &rect);
101 QRect clipRect()
const;
103 void setScaledSize(
const QSize &size);
104 QSize scaledSize()
const;
106 void setQuality(
int quality);
109 void setScaledClipRect(
const QRect &rect);
110 QRect scaledClipRect()
const;
112 void setBackgroundColor(
const QColor &color);
113 QColor backgroundColor()
const;
115 bool supportsAnimation()
const;
117 bool canRead()
const;
121 bool jumpToNextImage();
122 bool jumpToImage(
int imageNumber);
123 int loopCount()
const;
124 int imageCount()
const;
125 int nextImageDelay()
const;
126 int currentImageNumber()
const;
127 QRect currentImageRect()
const;
147 #endif // QIMAGEREADER_H The QColor class provides colors based on RGB, HSV or CMYK values.
Format
The following image formats are available in Qt.
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
#define QT_BEGIN_NAMESPACE
This macro expands to.
ImageOption
This enum describes the different options supported by QImageIOHandler.
The QStringList class provides a list of strings.
The QImage class provides a hardware-independent image representation that allows direct access to th...
handler setDevice(device)
The QImageReader class provides a format independent interface for reading images from files or other...
ImageReaderError
This enum describes the different types of errors that can occur when reading images with QImageReade...
The QRect class defines a rectangle in the plane using integer precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QIODevice class is the base interface class of all I/O devices in Qt.
static QString fileName(const QString &fileUrl)