Skia
2D Graphics Library
SkUnPreMultiply Class Reference

#include <SkUnPreMultiply.h>

Public Types

typedef uint32_t Scale
 

Static Public Member Functions

static const ScaleGetScaleTable ()
 
static Scale GetScale (U8CPU alpha)
 
static U8CPU ApplyScale (Scale scale, U8CPU component)
 Usage: More...
 
static SkColor PMColorToColor (SkPMColor c)
 

Member Typedef Documentation

◆ Scale

typedef uint32_t SkUnPreMultiply::Scale

Member Function Documentation

◆ ApplyScale()

static U8CPU SkUnPreMultiply::ApplyScale ( Scale  scale,
U8CPU  component 
)
inlinestatic

Usage:

const Scale* table = SkUnPreMultiply::GetScaleTable();

for (...) { unsigned a = ... SkUnPreMultiply::Scale scale = table[a];

red = SkUnPreMultiply::ApplyScale(scale, red); ... now red is unpremultiplied }

◆ GetScale()

static Scale SkUnPreMultiply::GetScale ( U8CPU  alpha)
inlinestatic

◆ GetScaleTable()

static const Scale* SkUnPreMultiply::GetScaleTable ( )
inlinestatic

◆ PMColorToColor()

static SkColor SkUnPreMultiply::PMColorToColor ( SkPMColor  c)
static

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