delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/03/18:55:45

From: SerDevian <scriven AT CS DOT ColoState DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pcx file format questions
Date: Wed, 03 Sep 1997 12:47:21 -0600
Organization: XYZZ Software Co.
Lines: 20
Message-ID: <340DB0B9.41C6@CS.ColoState.edu>
References: <Pine DOT SGI DOT 3 DOT 91 DOT 970831001741 DOT 3300A-100000 AT neutrino DOT phys DOT laurentian DOT ca>
NNTP-Posting-Host: escher.vis.colostate.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Timothy Robb wrote:
> I have a pcx class I am writting  and have some questions about pcx file
> format in general.

Most questions should be answerable in the PCX-loading and saving
routines on my page.  If you look at the source there and still have
questions, feel free to email me.

> size (91*101 = 9191 in this example).  I would like to know what bytes
> per line is?  I would think it's related to the width but am not sure,

Bytes per line should equal the image-width in 8-bit images, *unless*
the image has an odd width.  In that case, it will be width+1.  In
24-bit images, it should be width*3.

 _  _ _  _ ___ ___  -----------"Use the source, Luke!"---------
( \/ ( \/ (__ (__ ) | ~  Scott Scriven (SerDevian / XYZZ)     |
 \  / \  /  //  //  | mailto:scriven AT CS DOT ColoState DOT edu         |
 /  \ / /  //_ //_  | mailto:scriven AT VIS DOT ColoState DOT edu        |
(_/\_(_/  (___(___) | http://www.vis.colostate.edu/~scriven/  |

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019