Change color in java.awt.Image?
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.
精彩评论