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
src_gui_image_qpixmap.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 <QBitmap>
4#include <QPixmap>
5
7
8void wrapper0() {
9
11QPixmap myPixmap;
12myPixmap.setMask(myPixmap.createHeuristicMask());
14
15} // wrapper0
16
17
18void wrapper1() {
19
21QPixmap pixmap("background.png");
22QRegion exposed;
23pixmap.scroll(10, 10, pixmap.rect(), &exposed);
25
26} // wrapper1
27} // src_gui_image_qpixmap
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
void setMask(const QBitmap &)
Sets a mask bitmap.
Definition qpixmap.cpp:543
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
widget render & pixmap