42 #ifndef QIMAGEIOHANDLER_H 43 #define QIMAGEIOHANDLER_H 45 #include <QtCore/qplugin.h> 46 #include <QtCore/qfactoryinterface.h> 47 #include <QtCore/qscopedpointer.h> 72 void setFormat(
const QByteArray &format)
const;
77 virtual bool canRead()
const = 0;
78 virtual bool read(
QImage *image) = 0;
79 virtual bool write(
const QImage &image);
100 virtual bool supportsOption(
ImageOption option)
const;
103 virtual bool jumpToNextImage();
104 virtual bool jumpToImage(
int imageNumber);
105 virtual int loopCount()
const;
106 virtual int imageCount()
const;
107 virtual int nextImageDelay()
const;
108 virtual int currentImageNumber()
const;
109 virtual QRect currentImageRect()
const;
123 #define QImageIOHandlerFactoryInterface_iid "com.trolltech.Qt.QImageIOHandlerFactoryInterface" 137 CanReadIncremental = 0x4
152 #endif // QIMAGEIOHANDLER_H The QVariant class acts like a union for the most common Qt data types.
#define QImageIOHandlerFactoryInterface_iid
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QByteArray class provides an array of bytes.
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QObject class is the base class of all Qt objects.
#define Q_DECLARE_INTERFACE(IFace, IId)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Capability
This enum describes the capabilities of a QImageIOPlugin.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
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 QImageIOHandlerFactoryInterface class provides the factory interface for QImageIOPlugin.
virtual QStringList keys() const =0
The QImageIOPlugin class defines an interface for writing an image format plugin. ...
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt...
QScopedPointer< QImageIOHandlerPrivate > d_ptr
#define Q_INTERFACES(x)
This macro tells Qt which interfaces the class implements.
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.
#define Q_DECLARE_PRIVATE(Class)
The QIODevice class is the base interface class of all I/O devices in Qt.