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_qpixmapfilter.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
5QPixmapColorizeFilter *myFilter = new QPixmapColorFilter;
6myFilter->setColor(QColor(128, 0, 0));
7myFilter->draw(painter, QPoint(0, 0), originalPixmap);
9
13 0.0,-1.0, 0.0,
14 -1.0, 5.0,-1.0,
15 0.0,-1.0, 0.0
16 };
17myFilter->setConvolutionKernel(kernel, 3, 3);
18myFilter->draw(painter, QPoint(0, 0), originalPixmap);
20
23myFilter->draw(painter, QPoint(0, 0), originalPixmap);
25
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
The QPixmapColorizeFilter class provides colorizing filtering for pixmaps.
void draw(QPainter *painter, const QPointF &dest, const QPixmap &src, const QRectF &srcRect=QRectF()) const override
void setColor(const QColor &color)
Sets the color of the colorize filter to the color specified.
The QPixmapConvolutionFilter class provides convolution filtering for pixmaps.
The QPixmapDropShadowFilter class is a convenience class for drawing pixmaps with drop shadows.
\inmodule QtCore\reentrant
Definition qpoint.h:25
double qreal
Definition qtypes.h:187
QPixmapColorizeFilter * myFilter
[0]
QPainter painter(this)
[7]