android.graphics
Class Color

java.lang.Object
  extended by android.graphics.Color

public class Color
extends Object


Field Summary
static int BLACK
           
static int BLUE
           
static int CYAN
           
static int DKGRAY
           
static int GRAY
           
static int GREEN
           
static int LTGRAY
           
static int MAGENTA
           
static int RED
           
static int TRANSPARENT
           
static int WHITE
           
static int YELLOW
           
 
Constructor Summary
Color()
           
 
Method Summary
static int alpha(int color)
           
static int argb(int alpha, int red, int green, int blue)
           
static int blue(int color)
           
static void colorToHSV(int color, float[] hsv)
           
static int green(int color)
           
static int HSVToColor(float[] hsv)
           
static int HSVToColor(int alpha, float[] hsv)
           
static int parseColor(String colorString)
           
static int red(int color)
           
static int rgb(int red, int green, int blue)
           
static void RGBToHSV(int red, int green, int blue, float[] hsv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLACK

public static final int BLACK
See Also:
Constant Field Values

DKGRAY

public static final int DKGRAY
See Also:
Constant Field Values

GRAY

public static final int GRAY
See Also:
Constant Field Values

LTGRAY

public static final int LTGRAY
See Also:
Constant Field Values

WHITE

public static final int WHITE
See Also:
Constant Field Values

RED

public static final int RED
See Also:
Constant Field Values

GREEN

public static final int GREEN
See Also:
Constant Field Values

BLUE

public static final int BLUE
See Also:
Constant Field Values

YELLOW

public static final int YELLOW
See Also:
Constant Field Values

CYAN

public static final int CYAN
See Also:
Constant Field Values

MAGENTA

public static final int MAGENTA
See Also:
Constant Field Values

TRANSPARENT

public static final int TRANSPARENT
See Also:
Constant Field Values
Constructor Detail

Color

public Color()
Method Detail

alpha

public static int alpha(int color)

red

public static int red(int color)

green

public static int green(int color)

blue

public static int blue(int color)

rgb

public static int rgb(int red,
                      int green,
                      int blue)

argb

public static int argb(int alpha,
                       int red,
                       int green,
                       int blue)

parseColor

public static int parseColor(String colorString)

RGBToHSV

public static void RGBToHSV(int red,
                            int green,
                            int blue,
                            float[] hsv)

colorToHSV

public static void colorToHSV(int color,
                              float[] hsv)

HSVToColor

public static int HSVToColor(float[] hsv)

HSVToColor

public static int HSVToColor(int alpha,
                             float[] hsv)


Copyright © 2008-2012. All Rights Reserved.