Java Color Brighten brighten(final int cValue, double colorBrigthnessFactor)

Here you can find the source of brighten(final int cValue, double colorBrigthnessFactor)

Description

brighten

License

Open Source License

Declaration

public static int brighten(final int cValue, double colorBrigthnessFactor) 

Method Source Code

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

    }
}

Related

  1. adjustHSB(Color inputColor, float hue, float saturation, float brightness)
  2. brighten(Color c, double f)
  3. brighten(Color color)
  4. brighten(final Color color, final double percentage)
  5. brighten(final int color)
  6. brighten(float[] rgb, float luminosity)
  7. brightenColor(Color color, double factor)
  8. brighter(Color c)
  9. brighter(Color c)