gpt4 book ai didi

pdf - PDF 的 BitsPerComponent 如何转换为图像的每像素位数?

转载 作者:行者123 更新时间:2023-12-05 08:44:48 24 4
gpt4 key购买 nike

我的目标是将 PDF 转换为图像(特别是 TIFF)。

有一个名为 BitsPerComponent 的 PDF 属性

并且根据页面上的描述,

This property can take the value 1, 2, 4, 8 or 16. Other values are not supported in the PDF Specification

这是否意味着,1、2、4、8 或 16 转换为图像中的每像素位数?

最佳答案

听起来更像是每个颜色分量的位,其中颜色分量是 (Alpha)/Red/Green/Blue 或 Grey 之一。因此,取每个分量的位数并乘以每个像素的分量以获得每个像素的位数。例如,如果您谈论的是 RGB 图像,则您有 3 个分量。每个分量 8 位的 RGB 将是每个像素图像 8 * 3 = 24 位。如果是灰度,例如一个组件,每个组件 8 位就是每个像素 8 位。

关于pdf - PDF 的 BitsPerComponent 如何转换为图像的每像素位数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/757265/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com