Rgb Color To Hsv Color - Android Graphics

Android examples for Graphics:Color RGB Value

Description

Rgb Color To Hsv Color

Demo Code


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

public class Main {
    public static void RgbToHsv(int red, int green, int blue, float hsv[]) {
        Color.colorToHSV(Color.rgb(red, green, blue), hsv);
    }//from   w  w w.  j  a  va2 s .co m

    public static void RgbToHsv(int color, float hsv[]) {
        Color.colorToHSV(color, hsv);
    }
}

Related Tutorials