Click here to Skip to main content
13,052,163 members (38,720 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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.

Posted 22-Jan-11 0:07am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

Espen Harlinn
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 22 Jan 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100