Does CGImage support 16 bits per channel?

424 views Asked by At

bitsPerComponent says it's at most 8, but a couple of Stack Overflow questions imply 16 is supported.

1

There are 1 answers

0
Erdem Savasci On

You can find the necessary information in “Supported Pixel Formats“ in the “Graphics Contexts“ chapter of “Quartz 2D Programming Guide“ below even it is archived documentation.

https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_context/dq_context.html

The below figure is taken from the above url.

Supported Pixel Formats by Apple

Note that “bpp“ is specified as “bits per pixel“ and “bcp“ is “bits per component“. As given in above table, it seems that only Mac OS (>=10.X versions) supports 16 bcp, not iOS.