Skia
2D Graphics Library
SkTableMaskFilter Class Reference

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 SkMaskFilterCreate (const uint8_t table[256])
 
static SkMaskFilterCreateGamma (SkScalar gamma)
 
static SkMaskFilterCreateClip (uint8_t min, uint8_t max)
 

Detailed Description

Applies a table lookup on each of the alpha values in the mask.

Helper methods create some common tables (e.g. gamma, clipping)

Constructor & Destructor Documentation

◆ SkTableMaskFilter()

SkTableMaskFilter::SkTableMaskFilter ( )
delete

Member Function Documentation

◆ Create()

static SkMaskFilter* SkTableMaskFilter::Create ( const uint8_t  table[256])
static

◆ CreateClip()

static SkMaskFilter* SkTableMaskFilter::CreateClip ( uint8_t  min,
uint8_t  max 
)
static

◆ CreateGamma()

static SkMaskFilter* SkTableMaskFilter::CreateGamma ( SkScalar  gamma)
static

◆ MakeClipTable()

static void SkTableMaskFilter::MakeClipTable ( uint8_t  table[256],
uint8_t  min,
uint8_t  max 
)
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.

◆ MakeGammaTable()

static void SkTableMaskFilter::MakeGammaTable ( uint8_t  table[256],
SkScalar  gamma 
)
static

Utility that sets the gamma table.


The documentation for this class was generated from the following file: