get Brighter Letter Color - Android Graphics

Android examples for Graphics:Color Brighten

Description

get Brighter Letter Color

Demo Code


//package com.java2s;
import android.graphics.Color;

public class Main {
    public static int getBrighterLetterColor(int color) {
        float hsv[] = new float[3];

        Color.colorToHSV(color, hsv);

        return Color.HSVToColor(20, hsv);
    }//from  www  .  j  a v  a  2s . c  o m

    public static int getBrighterLetterColor(int color, int alpha) {
        float hsv[] = new float[3];

        Color.colorToHSV(color, hsv);

        return Color.HSVToColor(alpha, hsv);
    }
}

Related Tutorials