548 if (mb > mbLimit || (mb == mbLimit && szp.
totalSize % (1 << 20))) {
549 qCWarning(lcImageIo,
"QImageIOHandler: Rejecting image as it exceeds the current "
550 "allocation limit of %i megabytes", mbLimit);
556 return !
image->isNull();
559#ifndef QT_NO_IMAGEFORMATPLUGIN
615#include "moc_qimageiohandler.cpp"
IOBluetoothDevice * device
\inmodule QtCore \reentrant
virtual ~QImageIOHandlerPrivate()
QImageIOHandlerPrivate(QImageIOHandler *q)
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt.
virtual QRect currentImageRect() const
Returns the rect of the current image.
virtual int nextImageDelay() const
For image formats that support animation, this function returns the number of milliseconds to wait un...
virtual int imageCount() const
For image formats that support animation, this function returns the number of images in the animation...
QImageIOHandler()
Constructs a QImageIOHandler object.
ImageOption
This enum describes the different options supported by QImageIOHandler.
virtual bool jumpToNextImage()
For image formats that support animation, this function jumps to the next image.
virtual int currentImageNumber() const
For image formats that support animation, this function returns the sequence number of the current im...
virtual bool canRead() const =0
Returns true if an image can be read from the device (i.e., the image format is supported,...
virtual bool write(const QImage &image)
Writes the image image to the assigned device.
static bool allocateImage(QSize size, QImage::Format format, QImage *image)
virtual void setOption(ImageOption option, const QVariant &value)
Sets the option option with the value value.
QByteArray format() const
Returns the format that is currently assigned to QImageIOHandler.
virtual bool supportsOption(ImageOption option) const
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
virtual QVariant option(ImageOption option) const
Returns the value assigned to option as a QVariant.
void setDevice(QIODevice *device)
Sets the device of the QImageIOHandler to device.
virtual bool jumpToImage(int imageNumber)
For image formats that support animation, this function jumps to the image whose sequence number is i...
virtual ~QImageIOHandler()
Destructs the QImageIOHandler object.
virtual int loopCount() const
For image formats that support animation, this function returns the number of times the animation sho...
void setFormat(const QByteArray &format)
Sets the format of the QImageIOHandler to format.
~QImageIOPlugin()
Destroys the picture format plugin.
QImageIOPlugin(QObject *parent=nullptr)
Constructs an image plugin with the given parent.
static int allocationLimit()
Format
The following image formats are available in Qt.
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
int qt_depthForFormat(QImage::Format format)
#define Q_LOGGING_CATEGORY(name,...)
#define qCWarning(category,...)
constexpr const T & qMax(const T &a, const T &b)
GLint GLenum GLsizei GLsizei GLsizei depth
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
GLdouble GLdouble GLdouble GLdouble q
static ImageSizeParameters calculateImageParameters(qsizetype width, qsizetype height, qsizetype depth)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent