Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有从 pdf 文件中获取的图像字节流。我需要在 Windows 窗体中显示它。所以,我对其进行解码并将流转换为图像,然后打印图像。
彩色图像以灰度显示
这是原始图像。
谁可以帮我这个事?
我得到了图像.....让我解释一下:
在最初将字符串解码为流式传输时,我使用了一些Encoding技术,然后解码为图像......我犯了错误......然后通过将字符串转换为ASCIIchar 字节然后将其解码为图像来清除它...... .现在它适用于颜色和我的预期......
Encoding
ASCII