![]() |
Qt 6.x
The Qt SDK
|
#include <qmnghandler_p.h>
Public Member Functions | |
QMngHandler () | |
~QMngHandler () | |
bool | canRead () const override |
\reimp | |
bool | read (QImage *image) override |
\reimp | |
bool | write (const QImage &image) override |
\reimp | |
int | currentImageNumber () const override |
\reimp | |
int | imageCount () const override |
\reimp | |
bool | jumpToImage (int imageNumber) override |
\reimp | |
bool | jumpToNextImage () override |
\reimp | |
int | loopCount () const override |
\reimp | |
int | nextImageDelay () const override |
\reimp | |
QVariant | option (ImageOption option) const override |
\reimp | |
void | setOption (ImageOption option, const QVariant &value) override |
\reimp | |
bool | supportsOption (ImageOption option) const override |
\reimp | |
![]() | |
QImageIOHandler () | |
Constructs a QImageIOHandler object. | |
virtual | ~QImageIOHandler () |
Destructs the QImageIOHandler object. | |
void | setDevice (QIODevice *device) |
Sets the device of the QImageIOHandler to device. | |
QIODevice * | device () const |
Returns the device currently assigned to the QImageIOHandler. | |
void | setFormat (const QByteArray &format) |
Sets the format of the QImageIOHandler to format. | |
void | setFormat (const QByteArray &format) const |
Sets the format of the QImageIOHandler to format. | |
QByteArray | format () const |
Returns the format that is currently assigned to QImageIOHandler. | |
virtual bool | canRead () const =0 |
Returns true if an image can be read from the device (i.e., the image format is supported, the device can be read from and the initial header information suggests that the image can be read); otherwise returns false . | |
virtual bool | read (QImage *image)=0 |
Read an image from the device, and stores it in image. | |
virtual bool | write (const QImage &image) |
Writes the image image to the assigned device. | |
virtual QVariant | option (ImageOption option) const |
Returns the value assigned to option as a QVariant. | |
virtual void | setOption (ImageOption option, const QVariant &value) |
Sets the option option with the value value. | |
virtual bool | supportsOption (ImageOption option) const |
Returns true if the QImageIOHandler supports the option option; otherwise returns false . | |
virtual bool | jumpToNextImage () |
For image formats that support animation, this function jumps to the next image. | |
virtual bool | jumpToImage (int imageNumber) |
For image formats that support animation, this function jumps to the image whose sequence number is imageNumber. | |
virtual int | loopCount () const |
For image formats that support animation, this function returns the number of times the animation should loop. | |
virtual int | imageCount () const |
For image formats that support animation, this function returns the number of images in the animation. | |
virtual int | nextImageDelay () const |
For image formats that support animation, this function returns the number of milliseconds to wait until reading the next image. | |
virtual int | currentImageNumber () const |
For image formats that support animation, this function returns the sequence number of the current image in the animation. | |
virtual QRect | currentImageRect () const |
Returns the rect of the current image. | |
Static Public Member Functions | |
static bool | canRead (QIODevice *device) |
![]() | |
static bool | allocateImage (QSize size, QImage::Format format, QImage *image) |
Definition at line 18 of file qmnghandler_p.h.
QMngHandler::QMngHandler | ( | ) |
Definition at line 336 of file qmnghandler.cpp.
QMngHandler::~QMngHandler | ( | ) |
Definition at line 341 of file qmnghandler.cpp.
|
overridevirtual |
\reimp
Implements QImageIOHandler.
Definition at line 346 of file qmnghandler.cpp.
References canRead(), d, QImageIOHandler::device(), and QImageIOHandler::setFormat().
Referenced by canRead(), QMngPlugin::capabilities(), and read().
|
static |
Definition at line 360 of file qmnghandler.cpp.
References QImageIOHandler::device(), QIODevice::peek(), and qWarning.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 385 of file qmnghandler.cpp.
References d.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 392 of file qmnghandler.cpp.
References d.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 399 of file qmnghandler.cpp.
References d.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 406 of file qmnghandler.cpp.
References d.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 413 of file qmnghandler.cpp.
References d.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 422 of file qmnghandler.cpp.
References d.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 429 of file qmnghandler.cpp.
References QImageIOHandler::Animation, QImageIOHandler::BackgroundColor, and d.
|
overridevirtual |
\reimp
Implements QImageIOHandler.
Definition at line 371 of file qmnghandler.cpp.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 440 of file qmnghandler.cpp.
References QImageIOHandler::BackgroundColor, and d.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 448 of file qmnghandler.cpp.
References QImageIOHandler::Animation, and QImageIOHandler::BackgroundColor.
|
overridevirtual |
\reimp
Reimplemented from QImageIOHandler.
Definition at line 378 of file qmnghandler.cpp.
References d.