How to edit pixel values of an image in Java. I开发者_JAVA百科s there any method to change pixel values?
For example:
BufferedImage image = ...
image.setRGB(x, y, 0);
From documentation:
 void setRGB(int x, int y, int rgb)
 //Sets a pixel in this BufferedImage to the specified RGB value.
In BufferedImage: public void setRGB(int x,
                   int y,
                   int rgb)
Sets a pixel in this BufferedImage to the specified RGB value. The pixel is assumed to be in the default RGB color model, TYPE_INT_ARGB, and default sRGB color space. For images with an IndexColorModel, the index with the nearest color is chosen.
http://download.oracle.com/javase/6/docs/api/java/awt/image/BufferedImage.html
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论