Flutter Engine
The Flutter Engine
|
#include <SkColor.h>
Public Member Functions | |
bool | operator== (const SkRGBA4f &other) const |
bool | operator!= (const SkRGBA4f &other) const |
SkRGBA4f | operator* (float scale) const |
SkRGBA4f | operator* (const SkRGBA4f &scale) const |
const float * | vec () const |
float * | vec () |
std::array< float, 4 > | array () const |
float | operator[] (int index) const |
float & | operator[] (int index) |
bool | isOpaque () const |
bool | fitsInBytes () const |
SkColor | toSkColor () const |
SkRGBA4f< kPremul_SkAlphaType > | premul () const |
SkRGBA4f< kUnpremul_SkAlphaType > | unpremul () const |
uint32_t | toBytes_RGBA () const |
SkRGBA4f | makeOpaque () const |
Static Public Member Functions | |
static SkRGBA4f | FromColor (SkColor color) |
static SkRGBA4f | FromPMColor (SkPMColor) |
static SkRGBA4f | FromBytes_RGBA (uint32_t color) |
Public Attributes | |
float | fR |
red component More... | |
float | fG |
green component More... | |
float | fB |
blue component More... | |
float | fA |
alpha component More... | |
RGBA color value, holding four floating point components. Color components are always in a known order. kAT determines if the SkRGBA4f's R, G, and B components are premultiplied by alpha or not.
Skia's public API always uses unpremultiplied colors, which can be stored as SkRGBA4f<kUnpremul_SkAlphaType>. For convenience, this type can also be referred to as SkColor4f.
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
uint32_t SkRGBA4f< kAT >::toBytes_RGBA | ( | ) | const |
SkColor SkRGBA4f< kAT >::toSkColor | ( | ) | const |
|
inline |
Returns SkRGBA4f unpremultiplied by alpha. Asserts at compile time if SkRGBA4f is already unpremultiplied.
Definition at line 395 of file SkColor.h.
|
inline |
|
inline |
float SkRGBA4f< kAT >::fA |
float SkRGBA4f< kAT >::fB |
float SkRGBA4f< kAT >::fG |
float SkRGBA4f< kAT >::fR |