whitetiger on 11/09/06
Last Edited at 11/09/06 11:54pm
public BufferedImage brightness(BufferedImage bi, float value) { BufferedImage buff = new BufferedImage(bi.getWidth(), bi.getHeight(), bi.getType()); Kernel kernel = new Kernel(1, 1, new float[] {value}); ConvolveOp op = new ConvolveOp(kernel); op.filter(bi, buff); return buff; }
Report this snippet Tweet
Comment:
You need to login to post a comment.