[comp.os.msdos.programmer] routine to read PCX image file??

jdonovan@garnet.berkeley.edu (John Donovan) (04/27/91)

Does anyone have a code fragment that will read a PCX 16 or 256 color
PCX image file and load the pixel values (one scan line at a time)
into an integer array? I will need to call it from MS FORTRAN. I tried
to modify a C routine PRTPCX.C from the C Gazette, and it worked but
the program seems to have a bug that reverses the bit order in the 
integer scanline array. This causes the pixel values to be scrambled.
The original program seems to do the same thing when printing. Please
e-mail me your responses. Thanks.
-- 
| JOHN J. DONOVAN                   Electron Beam Micro-Analytical Laboratory |
| DEPARTMENT OF GEOLOGY                       *** PROBE THE EARTH ***         |
| UNIVERSITY OF CALIFORNIA          Phone :  (415) 642-5459 or (415) 642-3996 |
| BERKELEY, CA, 94720               Internet :   jdonovan@garnet.berkeley.edu |