Java Image Brighten brightenImage(BufferedImage image, float brigtness, float offset)

Here you can find the source of brightenImage(BufferedImage image, float brigtness, float offset)

Description

brighten Image

License

Open Source License

Declaration

public static Image brightenImage(BufferedImage image, float brigtness, float offset) 

Method Source Code

//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;
    }
}

Related

  1. brighten(BufferedImage bufferedImage, float amount)
  2. brighten(BufferedImage image)
  3. brighten(BufferedImage src, float offset)
  4. brightenImage(BufferedImage srcImg)
  5. brightenOp(float mult, int add)