所有CGBitmapInfo常量的含义是什么?
typedef CF_OPTIONS(uint32_t, CGBitmapInfo) {
kCGBitmapAlphaInfoMask = 0x1F,
kCGBitmapFloatInfoMask = 0xF00,
kCGBitmapFloatComponents = (1 << 8),
kCGBitmapByteOrderDefault = (0 << 12),
kCGBitmapByteOrder16Little = (1 << 12),
kCGBitmapByteOrder32Little = (2 << 12),
kCGBitmapByteOrder32Big = (4 << 12)
}
答案 0 :(得分:1)
您可以在Core Graphic文档中找到常量的描述:https://developer.apple.com/reference/coregraphics/cgbitmapinfo