apps.mtdesktop.tabletop.mouse
Class ColorChanger

java.lang.Object
  extended by apps.mtdesktop.tabletop.mouse.ColorChanger

public class ColorChanger
extends java.lang.Object

The Class ColorChanger.


Field Summary
static int ALPHA
          The Constant ALPHA.
static int BLUE
          The Constant BLUE.
static int BRIGHTNESS
          The Constant BRIGHTNESS.
static int GREEN
          The Constant GREEN.
static int HUE
          The Constant HUE.
static int RED
          The Constant RED.
static int SATURATION
          The Constant SATURATION.
static int TRANSPARENT
          The Constant TRANSPARENT.
 
Constructor Summary
ColorChanger()
           
 
Method Summary
static java.awt.image.BufferedImage changeColor(java.awt.image.BufferedImage image, java.awt.Color mask, java.awt.Color replacement)
          Change color.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHA

public static final int ALPHA
The Constant ALPHA.

See Also:
Constant Field Values

BLUE

public static final int BLUE
The Constant BLUE.

See Also:
Constant Field Values

BRIGHTNESS

public static final int BRIGHTNESS
The Constant BRIGHTNESS.

See Also:
Constant Field Values

GREEN

public static final int GREEN
The Constant GREEN.

See Also:
Constant Field Values

HUE

public static final int HUE
The Constant HUE.

See Also:
Constant Field Values

RED

public static final int RED
The Constant RED.

See Also:
Constant Field Values

SATURATION

public static final int SATURATION
The Constant SATURATION.

See Also:
Constant Field Values

TRANSPARENT

public static final int TRANSPARENT
The Constant TRANSPARENT.

See Also:
Constant Field Values
Constructor Detail

ColorChanger

public ColorChanger()
Method Detail

changeColor

public static java.awt.image.BufferedImage changeColor(java.awt.image.BufferedImage image,
                                                       java.awt.Color mask,
                                                       java.awt.Color replacement)
Change color.

Parameters:
image - the image
mask - the mask
replacement - the replacement
Returns:
the buffered image