Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Image_colorType |
, |
|
|
256 |
, |
|
|
96 |
, |
|
|
false |
, |
|
|
4 |
|
|
) |
| |
Definition at line 5 of file Image_colorType.cpp.
5 {
7 const char*
colors[] = {
"Unknown",
"Alpha_8",
"RGB_565",
"ARGB_4444",
"RGBA_8888",
"RGB_888x",
8 "BGRA_8888", "RGBA_1010102", "RGB_101010x", "Gray_8", "RGBA_F16Norm",
9 "RGBA_F16" };
14}
15}
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
SkColorType colorType() const
sk_sp< SkFontMgr > fontMgr
PODArray< SkColor > colors