kCGBitmapByteOrder32Little的含义是什么?

时间:2016-08-10 07:38:28

标签: ios cgbitmapcontext

所有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)
}

1 个答案:

答案 0 :(得分:1)

您可以在Core Graphic文档中找到常量的描述:https://developer.apple.com/reference/coregraphics/cgbitmapinfo

enter image description here