public class PixelServices
extends java.lang.Object
Constructor and Description |
---|
PixelServices() |
Modifier and Type | Method and Description |
---|---|
static double |
colorDistance(java.awt.Color color1,
java.awt.Color color2)
Method to compute the distance between two colors
|
static int |
getBlue(int value)
Method to get the blue value from a integer pixel color representation.
|
static int |
getGreen(int value)
Method to get the green value from a integer pixel color representation.
|
static int |
getRed(int value)
Method to get the red value from a integer pixel color representation.
|
public static int getRed(int value)
value
- the integer color representationpublic static int getGreen(int value)
value
- the integer color representationpublic static int getBlue(int value)
value
- the integer color representationpublic static double colorDistance(java.awt.Color color1, java.awt.Color color2)
color1
- the first colorcolor2
- the second color