Skia
2D Graphics Library
|
Applies a table lookup on each of the alpha values in the mask. More...
#include <SkTableMaskFilter.h>
Public Member Functions | |
SkTableMaskFilter ()=delete | |
Static Public Member Functions | |
static void | MakeGammaTable (uint8_t table[256], SkScalar gamma) |
Utility that sets the gamma table. More... | |
static void | MakeClipTable (uint8_t table[256], uint8_t min, uint8_t max) |
Utility that creates a clipping table: clamps values below min to 0 and above max to 255, and rescales the remaining into 0..255. More... | |
static SkMaskFilter * | Create (const uint8_t table[256]) |
static SkMaskFilter * | CreateGamma (SkScalar gamma) |
static SkMaskFilter * | CreateClip (uint8_t min, uint8_t max) |
Applies a table lookup on each of the alpha values in the mask.
Helper methods create some common tables (e.g. gamma, clipping)
|
delete |
|
static |
|
static |
|
static |
|
static |
Utility that creates a clipping table: clamps values below min to 0 and above max to 255, and rescales the remaining into 0..255.
|
static |
Utility that sets the gamma table.