用C#解码PCX图像 [英] Decoding PCX Image in C#

查看:201
本文介绍了用C#解码PCX图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我一直在使用C#开发pcx解码器,并且设法读取了标头信息并检索了bpp,扫描线长度,高度,宽度等.现在,我想对扫描线中的像素进行解码,并从pixelarray,步幅,高度和宽度(以像素为单位)和像素格式(为bpp)创建位图.

如何解码扫描线(已阅读技术手册),然后将其存储为像素阵列(或指向像素阵列的指针)以与位图一起使用.

如果有人可以帮忙,我将非常感激,我已经进行了很多搜索并且找不到很多东西.我知道这是一种旧格式,但这是我想完成的一个项目.

问候.

Hello,

I have been working on a pcx decoder in C# and I have managed to read through the header information and retrieve the bpp, scan line length, height, width etc. Now, I''d like to decode the pixels in the scan line and create a Bitmap from the pixelarray, stride, height and width in pixels(which I have) and pixel format (which is the bpp).

How do I go about decoding the scanlines (I have read the technical manual) and then storing them as a pixel array (or pointer to a pixel array) for use with the bitmap.

If anyone could help out, I would really appreciate it, I have done alot of searching and can''t find much. I know it''s an old format, but it''s a project of mine I''d like to complete.

Regards.

推荐答案

这可能会有所帮助:
ImageMagick [
This may help:
ImageMagick[^] is a well known library.

Regards
Espen Harlinn


这篇关于用C#解码PCX图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆