68 if (sourceIsPixmap()) {
void setColorAt(qreal pos, const QColor &color)
The QGraphicsOpacityEffect class provides an opacity effect.
void setOpacityMask(const QBrush &mask)
bool qFuzzyCompare(const QMatrix4x4 &m1, const QMatrix4x4 &m2)
The QPainter class performs low-level painting on widgets and other paint devices.
void setWorldTransform(const QTransform &matrix, bool combine=false)
void drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)
The QPixmap class is an off-screen image representation that can be used as a paint device.
The QPoint class defines a point in the plane using integer precision.
GLenum GLuint GLintptr offset
QLinearGradient alphaGradient(rect.topLeft(), rect.bottomLeft())
[1]
QGraphicsOpacityEffect * effect
myFilter draw(painter, QPoint(0, 0), originalPixmap)