Flutter Engine
The Flutter Engine
|
#include <SkMaskGamma.h>
Public Member Functions | |
virtual | ~SkColorSpaceLuminance () |
virtual SkScalar | toLuma (SkScalar gamma, SkScalar luminance) const =0 |
virtual SkScalar | fromLuma (SkScalar gamma, SkScalar luma) const =0 |
Static Public Member Functions | |
static U8CPU | computeLuminance (SkScalar gamma, SkColor c) |
static const SkColorSpaceLuminance & | Fetch (SkScalar gamma) |
SkColorSpaceLuminance is used to convert luminances to and from linear and perceptual color spaces.
Luma is used to specify a linear luminance value [0.0, 1.0]. Luminance is used to specify a luminance value in an arbitrary color space [0.0, 1.0].
Definition at line 29 of file SkMaskGamma.h.
|
inlinevirtual |
Definition at line 31 of file SkMaskGamma.h.
Converts a color to a luminance value.
Definition at line 39 of file SkMaskGamma.h.
|
static |
Retrieves the SkColorSpaceLuminance for the given gamma.
Definition at line 60 of file SkMaskGamma.cpp.
|
pure virtual |
Converts a linear luma to a color component luminance in the color space.
|
pure virtual |
Converts a color component luminance in the color space to a linear luma.