Skia
2D Graphics Library
|
#include "include/core/SkTypes.h"
Go to the source code of this file.
Enumerations | |
enum | SkColorType : int { kUnknown_SkColorType , kAlpha_8_SkColorType , kRGB_565_SkColorType , kARGB_4444_SkColorType , kRGBA_8888_SkColorType , kRGB_888x_SkColorType , kBGRA_8888_SkColorType , kRGBA_1010102_SkColorType , kBGRA_1010102_SkColorType , kRGB_101010x_SkColorType , kBGR_101010x_SkColorType , kBGR_101010x_XR_SkColorType , kRGBA_10x6_SkColorType , kGray_8_SkColorType , kRGBA_F16Norm_SkColorType , kRGBA_F16_SkColorType , kRGBA_F32_SkColorType , kR8G8_unorm_SkColorType , kA16_float_SkColorType , kR16G16_float_SkColorType , kA16_unorm_SkColorType , kR16G16_unorm_SkColorType , kR16G16B16A16_unorm_SkColorType , kSRGBA_8888_SkColorType , kR8_unorm_SkColorType , kLastEnum_SkColorType = kR8_unorm_SkColorType } |
Describes how pixel bits encode color. More... | |
Variables | |
static constexpr int | kSkColorTypeCnt = static_cast<int>(kLastEnum_SkColorType) + 1 |
enum SkColorType : int |
Describes how pixel bits encode color.
A pixel may be an alpha mask, a grayscale, RGB, or ARGB.
kN32_SkColorType selects the native 32-bit ARGB format for the current configuration. This can lead to inconsistent results across platforms, so use with caution.
|
staticconstexpr |