Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qiiofhelpers_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QIIOFHELPERS_P_H
5#define QIIOFHELPERS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QImageIOPlugin>
19#include <private/qcore_mac_p.h>
20#include <ImageIO/ImageIO.h>
21#include <QList>
22
24
25/*
26Functions to utilize the native ImageIO Framework in OS X and iOS
27*/
28
30{
31public:
32 static QImageIOPlugin::Capabilities systemCapabilities(const QString &uti);
33 static bool readImage(QImageIOHandler *q_ptr, QImage *out);
34 static bool writeImage(QImageIOHandler *q_ptr, const QImage &in, const QString &uti);
35};
36
38{
39public:
41
42 bool readImage(QImage *out);
43 bool writeImage(const QImage &in, const QString &uti);
46
47protected:
48 bool initRead();
49 bool getIntProperty(CFStringRef property, int *value);
50
56};
57
59
60#endif
QImageIOHandler * q_ptr
QList< QVariant > writeOptions
bool getIntProperty(CFStringRef property, int *value)
QCFType< CGImageSourceRef > cgImageSource
bool writeImage(const QImage &in, const QString &uti)
QVariant imageProperty(QImageIOHandler::ImageOption option)
QCFType< CGDataProviderRef > cgDataProvider
void setOption(QImageIOHandler::ImageOption option, const QVariant &value)
QCFType< CFDictionaryRef > cfImageDict
bool readImage(QImage *out)
static bool readImage(QImageIOHandler *q_ptr, QImage *out)
static bool writeImage(QImageIOHandler *q_ptr, const QImage &in, const QString &uti)
static QImageIOPlugin::Capabilities systemCapabilities(const QString &uti)
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt.
ImageOption
This enum describes the different options supported by QImageIOHandler.
\inmodule QtGui
Definition qimage.h:37
Definition qlist.h:74
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qvariant.h:64
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint in
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
GLuint GLenum option
const char property[13]
Definition qwizard.cpp:101
QTextStream out(stdout)
[7]