编辑像素值

如何在Java中编辑图像的像素值。 有没有改变像素值的方法?

例如:

BufferedImage image = ... image.setRGB(x, y, 0); 

从文档 :

  void setRGB(int x, int y, int rgb) //Sets a pixel in this BufferedImage to the specified RGB value. 

BufferedImage :public void setRGB(int x,int y,int rgb)

将此BufferedImage中的像素设置为指定的RGB值。 假设像素位于默认的RGB颜色模型TYPE_INT_ARGB和默认的sRGB颜色空间中。 对于具有IndexColorModel的图像,选择具有最近颜色的索引。

http://download.oracle.com/javase/6/docs/api/java/awt/image/BufferedImage.html