4#ifndef QIIOFHELPERS_P_H
5#define QIIOFHELPERS_P_H
18#include <QImageIOPlugin>
19#include <private/qcore_mac_p.h>
20#include <ImageIO/ImageIO.h>
28
29
35 static bool readImage(QImageIOHandler *q_ptr, QImage *out);
36 static bool writeImage(QImageIOHandler *q_ptr,
const QImage &in,
const QString &uti);
44 bool readImage(QImage *out);
45 bool writeImage(
const QImage &in,
const QString &uti);
47 void setOption(QImageIOHandler::ImageOption option,
const QVariant &value);
QList< QVariant > writeOptions
QCFType< CGImageSourceRef > cgImageSource
QIIOFHelper(QImageIOHandler *q)
QCFType< CGDataProviderRef > cgDataProvider
bool getIntProperty(CFStringRef property, int *value)
QVariant imageProperty(QImageIOHandler::ImageOption option)
QCFType< CFDictionaryRef > cfImageDict
static QImageIOPlugin::Capabilities systemCapabilities(const QString &uti)
bool read(QImage *image) override
Read an image from the device, and stores it in image.
static bool canRead(QIODevice *iod)
QVariant option(ImageOption option) const override
Returns the value assigned to option as a QVariant.
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
~QMacHeifHandler() override
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
bool write(const QImage &image) override
Writes the image image to the assigned device.
void setOption(ImageOption option, const QVariant &value) override
Sets the option option with the value value.
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
Combined button and popup list for selecting options.