Flutter Engine
The Flutter Engine
|
#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) |
static SkColor | PMColorToColor (SkPMColor c) |
Definition at line 17 of file SkUnPreMultiply.h.
typedef uint32_t SkUnPreMultiply::Scale |
Definition at line 19 of file SkUnPreMultiply.h.
Usage:
const Scale* table = SkUnPreMultiply::GetScaleTable();
for (...) { unsigned a = ... SkUnPreMultiply::Scale scale = table[a];
red = SkUnPreMultiply::ApplyScale(scale, red); ... now red is unpremultiplied }
Definition at line 44 of file SkUnPreMultiply.h.
Definition at line 26 of file SkUnPreMultiply.h.
|
inlinestatic |
Definition at line 22 of file SkUnPreMultiply.h.
Definition at line 11 of file SkUnPreMultiply.cpp.