Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkUnPreMultiply Class Reference

Public Types

typedef uint32_t Scale
 

Static Public Member Functions

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

Static Private Attributes

static const uint32_t gTable [256]
 

Member Function Documentation

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 }


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