Here you can find the source of brightenImage(BufferedImage image, float brigtness, float offset)
public static Image brightenImage(BufferedImage image, float brigtness, float offset)
//package com.java2s; //License from project: Open Source License import java.awt.Image; import java.awt.image.BufferedImage; import java.awt.image.RescaleOp; public class Main { public static Image brightenImage(BufferedImage image, float brigtness, float offset) { RescaleOp rescaleOp = new RescaleOp(brigtness, offset, null); rescaleOp.filter(image, image);/*from www . ja v a 2 s . c o m*/ return image; } }