> Failure-- Seems like ImageMagick "accidentally" inverts the color when
> converting from .tif to .bmp ... and that ImageMagick's 
> Negate operation
> doesn't have any effect on .bmp files !!!
> 
> Failure-- there seems to be no way to control the colors: white turns
> out grey.  Lots of -foreground and -background options don't seem to
> help.

-foreground and -background only affect the text, not the bitmap.

BMPs contain a color map. For b&w images, this table must hold two entries.
If you know the BMP header structure, you can tweak the color table to alter
the appearance.

Look at TiffSlice.pl on my perl site http://www.fairymails.com/perl/
The Tiff.pm module contains a function to create BMP headers. I don't
remember where I got the info about the BMP format - somewhere on the
internet I guess ;-)

Just searched for "BMP format reference" and found
this http://www.wotsit.org/search.asp?s=graphics 
(use the link "Windows BMP Format (MS Word) [Wim Wouters]")

and that http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/BMP.txt
(http://www.dcs.ed.ac.uk/home/mxr/gfx/index-hi.html was referenced by
http://www.webopedia.com/TERM/B/BMP.html)

have fun,
Harald

Reply via email to