CGImage是否支持每通道16位?

问题描述 投票:5回答:2

bitsPerComponent说它最多只有8个,但是几个Stack Overflow问题imply 16是supported

quartz-2d cgimage color-depth bit-depth
2个回答

0
投票

您可以在下面的“Quartz 2D Programming Guide”的“Graphics Contexts”一章中的“Supported Pixel Formats”中找到必要的信息,即使它是归档文档。

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。

© www.soinside.com 2019 - 2024. All rights reserved.