8 #ifndef SkMatrixConvolutionImageFilter_DEFINED
9 #define SkMatrixConvolutionImageFilter_DEFINED
11 #include "SkImageFilter.h"
31 kMax_TileMode = kClampToBlack_TileMode
58 const SkScalar* kernel,
65 const CropRect* cropRect =
nullptr);
67 SK_TO_STRING_OVERRIDE()
72 const SkScalar* kernel,
79 const CropRect* cropRect);
82 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
86 bool affectsTransparentBlack() const override;
97 template <class PixelFetcher,
bool convolveAlpha>
98 void filterPixels(const
SkBitmap& src,
101 const SkIRect& bounds) const;
102 template <class PixelFetcher>
103 void filterPixels(const
SkBitmap& src,
106 const SkIRect& bounds) const;
107 void filterInteriorPixels(const
SkBitmap& src,
110 const SkIRect& bounds) const;
111 void filterBorderPixels(const
SkBitmap& src,
114 const SkIRect& bounds) const;
TileMode
Definition: SkMatrixConvolutionImageFilter.h:27
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:28
Definition: SkMatrixConvolutionImageFilter.h:24
The SkBitmap class specifies a raster bitmap.
Definition: SkBitmap.h:37
Base class for image filters.
Definition: SkImageFilter.h:36
Definition: SkWriteBuffer.h:27
SkIRect holds four 32 bit integer coordinates for a rectangle.
Definition: SkRect.h:20
Definition: SkMatrixConvolutionImageFilter.h:30
SkIPoint holds two 32 bit integer coordinates.
Definition: SkPoint.h:40
Definition: SkMatrixConvolutionImageFilter.h:29