如何在Java中编辑图像的像素值。有什么方法可以更改像素值?
最佳答案
例如:
BufferedImage image = ...
image.setRGB(x, y, 0);
从documentation:
void setRGB(int x, int y, int rgb)
//Sets a pixel in this BufferedImage to the specified RGB value.
如何在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.