5

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

Kartick Vaddadi
  • 4,265
  • 5
  • 33
  • 45

2 Answers2

0

It seems that the official documentation is wrong

https://www.websupergoo.com/helppdfnet/default.htm?page=source%2F6-abcpdf.objects%2Fpixmap%2F2-properties%2Fbitspercomponent.htm Helps to confirm this

AleksW
  • 503
  • 2
  • 12
0

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.

Erdem Savasci
  • 619
  • 3
  • 12