Darken the image by 10%
import java.awt.image.BufferedImage;
import java.awt.image.RescaleOp;
public class Main {
public static void main(String[] argv) throws Exception {
BufferedImage bufferedImage = new BufferedImage(200, 200,
BufferedImage.TYPE_BYTE_INDEXED);
RescaleOp op = new RescaleOp(.9f, 0, null);
bufferedImage = op.filter(bufferedImage, null);
}
}
Related examples in the same category