Click here to Skip to main content
11,804,008 members (81,864 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Image-Processing

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 at 22-Jan-11 6:48am
Thanks, but I'd rather not use third party libraries.
Espen Harlinn at 22-Jan-11 7:16am
It's an open source thing - you could use it as a reference implementation
JF2015 at 22-Jan-11 7:26am
Good find.
Espen Harlinn at 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
0 OriginalGriff 410
1 CPallini 310
2 Sergey Alexandrovich Kryukov 234
3 CHill60 230
4 Suvendu Shekhar Giri 200
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 22 Jan 2011
Copyright © CodeProject, 1999-2015
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