[comp.sys.ibm.pc] Wanted: Info in MS Paintbrush file format.

mdharding@trillium.waterloo.edu (Matthew D. Harding) (08/14/89)

	I hav a little problem I am trying to solve with MS Paintbrush.
I have 70 .pcx files for use with Paintbrush. Each file is large enough
that when PB reads it in it truncates a large portion of the image(s).

	What I have been doing is spliting the files into 4 chunks,
in the ratio 1:2:2:2.  I then cat part 1 on to each of the other 3 and
then load each seperatly.  By doing this I get all the image(s) with
some overlap and noise at each end, of the image.  This works most
of the time, but occasionly the parts of the file I want are scrambled
or appear "wrapped around" the display.

	Needless to say this does not seem like a very good solution,
but I can't seem to figure out the header needed for the file or the
header for the display specs.

I am using MS Paintbrush Version 2 (1987-88) on with 640*480 16
colour VGA.  I can't find any reference to any of this in the docs
(no surprise really)

Anybody got any ideas or answers? Anything beats my present semi-
solution.

TIA

hst@mh_co2.mh.nl (Klaas Hemstra) (08/14/89)

From article <15899@watdragon.waterloo.edu>, by mdharding@trillium.waterloo.edu (Matthew D. Harding):
> 
> 	I hav a little problem I am trying to solve with MS Paintbrush.
> I have 70 .pcx files for use with Paintbrush. Each file is large enough
> that when PB reads it in it truncates a large portion of the image(s).
> 
> .. rest deleted
> 
> TIA

Do these .pcx files contain monochrome pictures ? They probably will.

I had such a problem too when I tried to read a file made on my own Turbo XT.

This file was made on a Hercules card, which is monochrome.
Its size was something like 1920x1040 pixels.
Of course this does not fit on the Hercules card but it does fit on the
Epson Printer.
This way you can make very smooth looking graphics on the printer.

So when you try to read this file on a VGA card the program looks at the header
and says "Ah, this is monochrome, I will have to convert this". So every pixel
is converted to the same colour of those 16 from the VGA card.
But this costs a little more memory (4 (bits) x 1920 x 1040) / 2 = 1 Mb.
Opposite to the 250K original.
This is to big for DOS 640K.

MS-Paintbrush will not detect this problem correctly most of the time.

Solution ?
I don't know.

					I hope this helps,

					Klaas Hemstra
Klaas Hemstra  (hst@mh.nl)                   |    /  / ,~~~  ~~/~~
uucp: ..{uunet!}hp4nl!mh.nl!hst              |   /--/  `-,    /  ___  |_/ |__|
Multihouse N.V., Gouda, the Netherlands      |  /  / ___/    /   ---  | \ |  |
"Most of us mindreaders are atheist, you know" A song for Lya: George Martin