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
image.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3#include <QtGui>
4namespace image {
5void wrapper0() {
6
12image.save(&buffer, "PNG"); // writes image into ba in PNG format
14
15} // wrapper0
16
17
18void wrapper1() {
19
22QByteArray bytes;
23QBuffer buffer(&bytes);
25pixmap.save(&buffer, "PNG"); // writes pixmap into bytes in PNG format
27
28} // wrapper1
29
30} // image
\inmodule QtCore \reentrant
Definition qbuffer.h:16
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtGui
Definition qimage.h:37
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
Definition image.cpp:4
void wrapper0()
Definition image.cpp:5
void wrapper1()
Definition image.cpp:18
GLenum GLuint buffer
QByteArray ba
[0]
widget render & pixmap