I have an java.awt.Image
object. It is an colorful image. Here is my code:
ImageIcon icon = new ImageIcon(bytes);
Image image = icon.getImage();
How can I make it black & white?
I have an java.awt.Image
object. It is an colorful image. Here is my code:
ImageIcon icon = new ImageIcon(bytes);
Image image = icon.getImage();
How can I make it black & white?
Look into using a BufferedImageOp. See Drawing an Image in the Java Tutorials for more details.