Here you can find the source of brighten(final int cValue, double colorBrigthnessFactor)
public static int brighten(final int cValue, double colorBrigthnessFactor)
//package com.java2s; //License from project: Open Source License public class Main { public static int brighten(final int cValue, double colorBrigthnessFactor) { if (colorBrigthnessFactor < 1) { return cValue; } else {//from ww w. j a v a2s .c o m return (int) (cValue + (colorBrigthnessFactor - 1) * ((255 - cValue) / colorBrigthnessFactor)); } } }