Skip to main content

black and white conversion

1 reply [Last post]
aravindrajasekharan
Offline
Joined: 2008-11-06
Points: 0

Hi all

I want to convert a color image to black and white.Iam able to convert to grey scale but i want pur black and white.Please help...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Harald Kuhr

On 4. feb.. 2009, at 04.34, jai-imageio@javadesktop.org wrote:

> I want to convert a color image to black and white.Iam able to
> convert to grey scale but i want pur black and white.Please help...

Try renderening your image onto a BufferedImage with a two-color (B/W)
IndexColorModel.

.k

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net