Flutter Engine
The Flutter Engine
|
#include <SkColorPalette.h>
Public Member Functions | |
SkColorPalette (const SkPMColor colors[], int count) | |
~SkColorPalette () override | |
int | count () const |
SkPMColor | operator[] (int index) const |
const SkPMColor * | readColors () const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
SkColorPalette holds an array of SkPMColors (premultiplied 32-bit colors) used by 8-bit bitmaps, where the bitmap bytes are interpreted as indices into the colortable.
SkColorPalette is thread-safe.
Definition at line 22 of file SkColorPalette.h.
Copy up to 256 colors into a new SkColorPalette.
Definition at line 13 of file SkColorPalette.cpp.
|
override |
Definition at line 23 of file SkColorPalette.cpp.
|
inline |
Returns the number of colors in the table.
Definition at line 31 of file SkColorPalette.h.
Returns the specified color from the table. In the debug build, this asserts that the index is in range (0 <= index < count).
Definition at line 36 of file SkColorPalette.h.
|
inline |
Return the array of colors for reading.
Definition at line 42 of file SkColorPalette.h.