krita

KisConvolutionPainter Class Reference

Inheritance diagram for KisConvolutionPainter:

KisPainter KisProgressSubject List of all members.

Detailed Description

Definition at line 60 of file kis_convolution_painter.h.


Public Member Functions

 KisConvolutionPainter ()
 KisConvolutionPainter (KisPaintDeviceSP device)
void applyMatrix (KisKernelSP kernel, Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h, KisConvolutionBorderOp borderOp=BORDER_AVOID, KisChannelInfo::enumChannelFlags channelFlags=KisChannelInfo::FLAG_COLOR)

Member Function Documentation

void KisConvolutionPainter::applyMatrix ( KisKernelSP  kernel,
Q_INT32  x,
Q_INT32  y,
Q_INT32  w,
Q_INT32  h,
KisConvolutionBorderOp  borderOp = BORDER_AVOID,
KisChannelInfo::enumChannelFlags  channelFlags = KisChannelInfo::FLAG_COLOR 
)

Convolve all channels in src using the specified kernel; there is only one kernel for all channels possible.

By default the the border pixels are not convolved, that is, convolving starts with at (x + kernel.width/2, y + kernel.height/2) and stops at w - (kernel.width/2) and h - (kernel.height/2)

The border op decides what to do with pixels too close to the edge of the rect as defined above.

The channels flag determines which set out of color channels, alpha channels, substance or substrate channels we convolve.

Note that we do not (currently) support different kernels for different channels _or_ channel types.

Definition at line 88 of file kis_convolution_painter.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys