Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ImageProcessing
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 22-Jan-11 1:07am
jbroun102

1 solution

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

Solution 1

This may help:
ImageMagick[^] is a well known library.
 
Regards
Espen Harlinn
  Permalink  
Comments
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 250
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 DamithSL 125
4 Afzaal Ahmad Zeeshan 120
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 22 Jan 2011
Copyright © CodeProject, 1999-2014
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