Here you can find the source of changeBrightness(BufferedImage image, int offset)
public static BufferedImage changeBrightness(BufferedImage image, int offset)
//package com.java2s; //License from project: Apache License import java.awt.image.BufferedImage; import java.awt.image.RescaleOp; public class Main { /**/* w w w .j a v a 2 s . c o m*/ * Muda o brilho da imagem de acordo com o offset * @return image brightness. */ public static BufferedImage changeBrightness(BufferedImage image, int offset) { float factor = 1.4f; RescaleOp op = new RescaleOp(factor, offset, null); BufferedImage brighter = op.filter(image, null); return brighter; } }