ioscgbitmapcontext

What's the meaning of kCGBitmapByteOrder32Little


What are the meaning all of CGBitmapInfo constants?

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

Solution

  • You can find a description of the constants in the Core Graphic documentation: https://developer.apple.com/reference/coregraphics/cgbitmapinfo

    enter image description here