18#ifndef KIS_CONVOLUTION_PAINTER_H_
19#define KIS_CONVOLUTION_PAINTER_H_
23#include "ksharedptr.h"
25#include "kis_painter.h"
27#include "koffice_export.h"
29enum KisConvolutionBorderOp {
30 BORDER_DEFAULT_FILL = 0,
38typedef TDESharedPtr<KisKernel> KisKernelSP;
40class KisKernel : public TDEShared
51 KisKernel() : width(0), height(0), offset(0), factor(0), data(0) {};
53 virtual ~KisKernel() { delete [] data; };
55 static KisKernelSP fromTQImage( const TQImage& img);
60class KRITACORE_EXPORT KisConvolutionPainter : public KisPainter
67 KisConvolutionPainter();
68 KisConvolutionPainter(KisPaintDeviceSP device);
83 void applyMatrix(KisKernelSP kernel, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h,
84 KisConvolutionBorderOp borderOp = BORDER_AVOID,
85 KisChannelInfo::enumChannelFlags channelFlags = KisChannelInfo::FLAG_COLOR);
90 void applyMatrixRepeat(KisKernelSP kernel, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h,
91 KisChannelInfo::enumChannelFlags channelFlags);
KisPainter contains the graphics primitives necessary to draw on a KisPaintDevice.
|