8 #ifndef SkTableMaskFilter_DEFINED
9 #define SkTableMaskFilter_DEFINED
11 #include "SkMaskFilter.h"
23 static void MakeGammaTable(uint8_t table[256], SkScalar gamma);
28 static void MakeClipTable(uint8_t table[256], uint8_t min, uint8_t max);
36 MakeGammaTable(table, gamma);
40 static SkMaskFilter* CreateClip(uint8_t min, uint8_t max) {
42 MakeClipTable(table, min, max);
49 SK_TO_STRING_OVERRIDE()
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:28
Definition: SkRefCnt.h:125
SkMask is used to describe alpha bitmaps, either 1bit, 8bit, or the 3-channel 3D format.
Definition: SkMask.h:19
virtual bool filterMask(SkMask *dst, const SkMask &src, const SkMatrix &, SkIPoint *margin) const
Create a new mask by filter the src mask.
SkMaskFilter is the base class for object that perform transformations on an alpha-channel mask befor...
Definition: SkMaskFilter.h:47
virtual SkMask::Format getFormat() const =0
Returns the format of the resulting mask that this subclass will return when its filterMask() method ...
Applies a table lookup on each of the alpha values in the mask.
Definition: SkTableMaskFilter.h:19
Format
Definition: SkMask.h:22
Definition: SkWriteBuffer.h:27
virtual void flatten(SkWriteBuffer &) const
Override this if your subclass needs to record data that it will need to recreate itself from its Cre...
Definition: SkFlattenable.h:117
SkIPoint holds two 32 bit integer coordinates.
Definition: SkPoint.h:40