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
qpixmapfilter.cpp File Reference

(48124977865b76212ef719b19ff37d6bd82ad82d)

#include <qglobal.h>
#include <QDebug>
#include "qpainter.h"
#include "qpixmap.h"
#include "qpixmapfilter_p.h"
#include "qvarlengtharray.h"
#include "private/qguiapplication_p.h"
#include "private/qpaintengineex_p.h"
#include "private/qpaintengine_raster_p.h"
#include "qmath.h"
#include "private/qmath_p.h"
#include "private/qdrawhelper_p.h"
#include <memory>
#include "moc_qpixmapfilter_p.cpp"
+ Include dependency graph for qpixmapfilter.cpp:

Go to the source code of this file.

Classes

class  QPixmapFilterPrivate
 
class  QPixmapConvolutionFilterPrivate
 
class  QPixmapBlurFilterPrivate
 
class  QPixmapColorizeFilterPrivate
 
class  QPixmapDropShadowFilterPrivate
 

Functions

static void convolute (QImage *destImage, const QPointF &pos, const QImage &srcImage, const QRectF &srcRect, QPainter::CompositionMode mode, qreal *kernel, int kernelWidth, int kernelHeight)
 
Q_GUI_EXPORT bool qt_scaleForTransform (const QTransform &transform, qreal *scale)
 
Q_GUI_EXPORT void qt_blurImage (QPainter *p, QImage &blurImage, qreal radius, bool quality, bool alphaOnly, int transposed=0)
 
static void grayscale (const QImage &image, QImage &dest, const QRect &rect=QRect())
 

Variables

const qreal radiusScale = qreal(2.5)
 

Function Documentation

◆ convolute()

static void convolute ( QImage * destImage,
const QPointF & pos,
const QImage & srcImage,
const QRectF & srcRect,
QPainter::CompositionMode mode,
qreal * kernel,
int kernelWidth,
int kernelHeight )
static

Definition at line 274 of file qpixmapfilter.cpp.

References QRectF::adjusted(), cb, QPainter::CompositionMode_Source, QImage::convertToFormat(), QImage::Format_ARGB32_Premultiplied, i, QRect::intersected(), QRectF::isNull(), kernel, output, pix, pos, qBound(), rect, QRectF::toAlignedRect(), and QPoint::y().

Referenced by QPixmapConvolutionFilter::draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ grayscale()

static void grayscale ( const QImage & image,
QImage & dest,
const QRect & rect = QRect() )
static

Definition at line 605 of file qpixmapfilter.cpp.

References QImage::bits(), QImage::height(), i, QRect::moveTo(), qAlpha(), qGray(), qRgba(), QImage::rect(), rect, QImage::scanLine(), QImage::size(), and QImage::width().

Referenced by QPdfEnginePrivate::addImage(), and QPixmapColorizeFilter::draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_blurImage()

Q_GUI_EXPORT void qt_blurImage ( QPainter * p,
QImage & blurImage,
qreal radius,
bool quality,
bool alphaOnly,
int transposed = 0 )
extern

Definition at line 292 of file qimageeffects.cpp.

References QImage::Format_ARGB32_Premultiplied, QImage::Format_RGB32, qt_halfScaled(), and QPainter::SmoothPixmapTransform.

Referenced by QPixmapDropShadowFilter::draw(), and QPixmapBlurFilter::draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_scaleForTransform()

Q_GUI_EXPORT bool qt_scaleForTransform ( const QTransform & transform,
qreal * scale )
extern

Definition at line 2148 of file qtransform.cpp.

Referenced by cubicTo_clipped().

+ Here is the caller graph for this function:

Variable Documentation

◆ radiusScale