Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qjpeghandler_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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QJPEGHANDLER_P_H
6
#
define
QJPEGHANDLER_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtGui
/
qimageiohandler
.
h
>
20
#
include
<
QtCore
/
QSize
>
21
#
include
<
QtCore
/
QRect
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QJpegHandlerPrivate
;
26
class
QJpegHandler
:
public
QImageIOHandler
27
{
28
public
:
29
QJpegHandler
();
30
~
QJpegHandler
();
31
32
bool
canRead
()
const
override
;
33
bool
read
(QImage *image)
override
;
34
bool
write
(
const
QImage &image)
override
;
35
36
static
bool
canRead
(QIODevice *device);
37
38
QVariant
option
(
ImageOption
option)
const
override
;
39
void
setOption
(
ImageOption
option,
const
QVariant &value)
override
;
40
bool
supportsOption
(
ImageOption
option)
const
override
;
41
42
private
:
43
QJpegHandlerPrivate
*d;
44
};
45
46
QT_END_NAMESPACE
47
48
#
endif
// QJPEGHANDLER_P_H
QImageIOHandler::ImageOption
ImageOption
This enum describes the different options supported by QImageIOHandler.
Definition
qimageiohandler.h:42
QJpegHandlerPrivate
Definition
qjpeghandler.cpp:748
QJpegHandler
Definition
qjpeghandler_p.h:27
QJpegHandler::QJpegHandler
QJpegHandler()
Definition
qjpeghandler.cpp:1065
QJpegHandler::supportsOption
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
Definition
qjpeghandler.cpp:1139
QJpegHandler::read
bool read(QImage *image) override
Read an image from the device, and stores it in image.
Definition
qjpeghandler.cpp:1118
QJpegHandler::setOption
void setOption(ImageOption option, const QVariant &value) override
Sets the option option with the value value.
Definition
qjpeghandler.cpp:1196
QJpegHandler::option
QVariant option(ImageOption option) const override
Returns the value assigned to option as a QVariant.
Definition
qjpeghandler.cpp:1155
QJpegHandler::~QJpegHandler
~QJpegHandler()
Definition
qjpeghandler.cpp:1087
QJpegHandler::write
bool write(const QImage &image) override
Writes the image image to the assigned device.
Definition
qjpeghandler.cpp:1127
QJpegHandler::canRead
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
Definition
qjpeghandler.cpp:1092
QJpegHandler::canRead
static bool canRead(QIODevice *device)
Definition
qjpeghandler.cpp:1105
QJpegPlugin
Definition
main.cpp:16
QJpegPlugin::create
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
Definition
main.cpp:41
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
imageformats
jpeg
qjpeghandler_p.h
Generated on
for Qt by
1.18.0