Skip to main content

ImageIO TIFF->BMP Black-white problem

1 reply [Last post]
vatuan
Offline
Joined: 2007-05-12
Points: 0

Hi all, I have a problem converting tiff(black,white image) to bmp file. The tiff image parametter is white=0.Since ImageIO always sets black=0, the output bmp image has opposite color comparing to the tiff image. I know there is a way to map between black and white, however, I dont know how to do it. Anyone helps?

Thank in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bpb
Offline
Joined: 2004-06-23
Points: 0

You could reset the ColorModel using an IndexColorModel with the inverse map.

> Hi all, I have a problem converting tiff(black,white
> image) to bmp file. The tiff image parametter is
> white=0.Since ImageIO always sets black=0, the output
> bmp image has opposite color comparing to the tiff
> image. I know there is a way to map between black and
> white, however, I dont know how to do it. Anyone
> helps?
>
> Thank in advance.