A.D. Fundum
2012-02-14 04:15:58 UTC
Is there an OS/2 app which can write 1bpp or black&white TGA files,
i.e. the third byte of the created TGA file equals 3 or 11?
PMView doesn't save another 1bpp file (1BPP.PCX) as a 1bpp TGA file.
GBM's editor claims that the output "file format doesn't support this
bits per pixel", even if the original 1bpp 1BPP.PCX file is
"converted"/mapped to a 1bpp file.
Untested one-liner showing the value of the first three bytes,
assuming a 1bpp file called "X.TGA". The second byte has to be 0 (no
color map), the third byte has to be 3 or 11.
REXXTRY f='X.TGA';DO 3;SAY C2D(CharIn(f,,1));END
Please note both black and white may be a color and PMView uses a
color map (second byte is 1), but 1bpp should ignore such an issue.
And 3 or 11 does imply a "black-and-white image" anyway.
FTR: IMHO it's a GBM bug, since the "Save as..." TGA file format does
seem to support a black-and-white image, i.e. 1bpp. The GBM Editor
assumes a "map" of 8bpp. And it's maybe a PMView bug, it doesn't save
a 1bpp black-and-white PCX source file as a 1bpp black-and-white TGA
file. Instead PMView uses a color map. Hence the question, are there
GA graphical OS/2 apps capable of properly saving a 1bpp
black-and-white TGA file: second byte 0, third byte 3 or 11?
--
i.e. the third byte of the created TGA file equals 3 or 11?
PMView doesn't save another 1bpp file (1BPP.PCX) as a 1bpp TGA file.
GBM's editor claims that the output "file format doesn't support this
bits per pixel", even if the original 1bpp 1BPP.PCX file is
"converted"/mapped to a 1bpp file.
Untested one-liner showing the value of the first three bytes,
assuming a 1bpp file called "X.TGA". The second byte has to be 0 (no
color map), the third byte has to be 3 or 11.
REXXTRY f='X.TGA';DO 3;SAY C2D(CharIn(f,,1));END
Please note both black and white may be a color and PMView uses a
color map (second byte is 1), but 1bpp should ignore such an issue.
And 3 or 11 does imply a "black-and-white image" anyway.
FTR: IMHO it's a GBM bug, since the "Save as..." TGA file format does
seem to support a black-and-white image, i.e. 1bpp. The GBM Editor
assumes a "map" of 8bpp. And it's maybe a PMView bug, it doesn't save
a 1bpp black-and-white PCX source file as a 1bpp black-and-white TGA
file. Instead PMView uses a color map. Hence the question, are there
GA graphical OS/2 apps capable of properly saving a 1bpp
black-and-white TGA file: second byte 0, third byte 3 or 11?
--