CGImage是否支持每个通道16位?

时间:2019-04-09 12:23:10

标签: quartz-2d cgimage color-depth bit-depth

bitsPerComponent说最大为8,但是几个堆栈溢出问题imply的16个是supported

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

即使是存档文档,也可以在下面的“ Quartz 2D编程指南”的“图形上下文”一章的“支持的像素格式”中找到必要的信息。

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

下图取自上面的网址。

Supported Pixel Formats by Apple

请注意,“ bpp”被指定为“每个像素的位数”,而“ bcp”被指定为“每个组件的位数”。如上表所示,似乎只有Mac OS(> = 10.X版本)支持16 bcp,而不支持iOS。