Skia
2D Graphics Library
|
#include <SkUnPreMultiply.h>
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) |
typedef uint32_t SkUnPreMultiply::Scale |
|
inlinestatic |
Usage:
const Scale* table = SkUnPreMultiply::GetScaleTable();
for (...) { unsigned a = ... SkUnPreMultiply::Scale scale = table[a];
red = SkUnPreMultiply::ApplyScale(scale, red); ... now red is unpremultiplied }
|
inlinestatic |
|
inlinestatic |