John Wilson wrote:
Now I'm trying to understand why this fix to individual files seemingly can't be coded into the PCX write procedure.
Since you stated that you were doing the coding based upon Roger T. Stevens' book "Fractal Programming in Turbo Pascal", you may wish to look at the first portion of Chapter 3 (about 3 or 4 pages into Figure 3-4). The following may be why your PCX files have that value: file_no :=Copy(file_name,7,2); Rewrite(fsave); ch := $0A; <===== Password Write(fsave,ch); ch := $05; <===== Version Write(fsave,ch); ch := $01; <===== Encoding Write(fsave,ch); ch := $04; <===== Bits per pixel Write(fsave,ch); B := intRec(x1).lo; Write(fsave,B); Appendix B states that the fourth position in the file (byte 3, relative zero) should contain a value of "1" for VGA. Now if you are doing this in some other programming language, your are welcome to send the source code so I may take a look at it for you. Sincerely, P.N.L. ------------------------------------------------- http://home.att.net/~Paul.N.Lee/PNL_Fractals.html http://www.Nahee.com/Fractals/