Czy da się zmienić kolor całego BufferedImage za jednym razem czy tylko każdy picel osobno?
Za pomocą np takiej funkcji?
public static BufferedImage setColor(BufferedImage image, int target) {
int width = image.getWidth();
int height = image.getHeight();
BufferedImage newImage = new BufferedImage(width, height, image.getType());
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
newImage.setRGB(i, j, target);
}
}
return newImage;
}