🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5970

routine to read PCX image file??

#5970
From: John Donovan
Date: Fri, 26 Apr 1991 21:13
13 lines
1349 bytes
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 |
Technical Details
Message-ID: <1991Apr26.211325.22085@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!garnet.berkeley.edu!jdonovan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!garnet.berkeley.edu!jdonovan
From: jdonovan@garnet.berkeley.edu (John Donovan)
Newsgroups: comp.os.msdos.programmer
Subject: routine to read PCX image file??
Message-ID: <1991Apr26.211325.22085@agate.berkeley.edu>
Date: 26 Apr 91 21:13:25 GMT
Sender: root@agate.berkeley.edu (Charlie Root)
Distribution: usa
Organization: University of California, Berkeley
Lines: 13
Originator: jdonovan@garnet.berkeley.edu