Click here to Skip to main content
15,885,998 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

This may help:
ImageMagick[^] is a well known library.

Regards
Espen Harlinn
 
Share this answer
 
Comments
jbroun 22-Jan-11 6:48am    
Thanks, but I'd rather not use third party libraries.
Espen Harlinn 22-Jan-11 7:16am    
It's an open source thing - you could use it as a reference implementation
JF2015 22-Jan-11 7:26am    
Good find.
Espen Harlinn 22-Jan-11 7:28am    
Thanks JF2015

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900