我已经正确编码了我的PNG图像,它是一个灰度8位的图像。该图像的尺寸为5100(w) x 6600(h),MediaBox为5100.0 6600.0。
图片:
3 0 obj
<<
/ProcSet [/PDF /ImageB]
/XObject <<
/Im8 8 0 R
>>
>>
endobj
8 0 obj
<<
/Type /XObject
/Subtype /Image
/BitsPerComponent 8
/ColorSpace /DeviceGray
/Height 6600
/Width 5100
/Filter /FlateDecode
/Length 590065
>>
stream
....zlib compressed stream
图像转换:
9 0 obj
<</Length 54>>
stream
q
5100 0 0 6600 0 0 cm
/Im8 Do
Q
endstream
endobj
页面:
10 0 obj
<<
/Type /Page
/Parent 2 0 R
/CropBox [0.0 0.0 5100.0 6600.0]
/MediaBox [0.0 0.0 5100.0 6600.0]
/Resources 3 0 R
/Contents [ ]
>>
endobj
图片无法显示。我逐像素验证过。
这个流总共有 33666600(5100x6600 + 6600)字节。其中,6600 字节表示使用的预测器。在我的情况下,它是 /Predictor 13。
我只写入了这 33666600 个字节,即压缩后的 IDAT。
也许是坐标?压缩方式?我错过了什么吗?
[ ]
(即空的),你认为你的图片会如何显示? - Martin Schröder