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
我认为我已经习惯了关于项目中 PHP 声明的相当自由的政策 - 我一直只是使用:
<? // here is my php code ?>
我只是在 FastCGI 下使用 PHP-FPM 设置了一个 nginx 服务器,现在它需要我明确声明:
<?php // here is my php code ?&