开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜