Revision: 1708
Updated Code
at November 10, 2006 00:11 by whitetiger
Updated Code
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; }
Revision: 1707
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 9, 2006 23:54 by whitetiger
Initial Code
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; }
Initial URL
Initial Description
Initial Title
Java - Brightness
Initial Tags
image, java, filter, images
Initial Language
Java