Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwbmphandler_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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QWBMPHANDLER_P_H
16#define QWBMPHANDLER_P_H
17
18#include <qimageiohandler.h>
19
21
22class WBMPReader;
23
25{
26public:
29
30 bool canRead() const override;
31 bool read(QImage *image) override;
32 bool write(const QImage &image) override;
33
34 QVariant option(ImageOption option) const override;
35 bool supportsOption(ImageOption option) const override;
36
37 static bool canRead(QIODevice *device);
38
39private:
40 WBMPReader *m_reader;
41};
42
44
45#endif /* QWBMPHANDLER_P_H */
\inmodule QtCore \reentrant
Definition qiodevice.h:34
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.
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore
Definition qvariant.h:65
The QWbmpHandler class provides support for the WBMP image format.
bool canRead() const override
Verifies if some values (magic bytes) are set as expected in the header of the file.
~QWbmpHandler()
Destructor for QWbmpHandler.
QWbmpHandler(QIODevice *device)
Constructs an instance of QWbmpHandler initialized to use device.
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
bool write(const QImage &image) override
\reimp
bool read(QImage *image) override
\reimp
Combined button and popup list for selecting options.
Definition image.cpp:4
GLuint GLenum option