|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.color.ColorUtil
public class ColorUtil
Contains all the color utility methods that are missing in ImageJ.
Field Summary | |
---|---|
static int |
BLUE_MASK
|
static int |
BLUE_POS
|
static int |
GREEN_MASK
|
static int |
GREEN_OFFSET
|
static int |
GREEN_POS
|
static int |
RED_MASK
|
static int |
RED_OFFSET
|
static int |
RED_POS
|
Constructor Summary | |
---|---|
ColorUtil()
|
Method Summary | |
---|---|
static int |
blueOrRgbToGray(int red,
int green,
int blue)
When you have RGB input but need a gray result. |
static java.lang.String |
colorToString(int color,
boolean rgb)
|
static int |
grayToRGB(int gray)
|
static int |
packColors(int[] colors)
|
static int |
packColors(int red,
int green,
int blue)
|
static int |
rgbToGray(int colorIn)
Change an RGB color to a gray value. |
static int |
splitBlue(int colorIn)
Split blue from int. |
static int[] |
splitColor(int colorIn)
Split color coded as int into 3 int. |
static int[] |
splitColor(int colorIn,
int[] iArray)
Split color coded as int into 3 int. |
static int |
splitGreen(int colorIn)
Split green from int. |
static int |
splitRed(int colorIn)
Split red from int. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BLUE_MASK
public static final int GREEN_MASK
public static final int RED_MASK
public static final int RED_POS
public static final int GREEN_POS
public static final int BLUE_POS
public static final int GREEN_OFFSET
public static final int RED_OFFSET
Constructor Detail |
---|
public ColorUtil()
Method Detail |
---|
public static int[] splitColor(int colorIn)
public static int[] splitColor(int colorIn, int[] iArray)
public static int splitRed(int colorIn)
public static int splitGreen(int colorIn)
public static int splitBlue(int colorIn)
public static int packColors(int red, int green, int blue)
public static int packColors(int[] colors)
public static int grayToRGB(int gray)
public static int rgbToGray(int colorIn)
public static int blueOrRgbToGray(int red, int green, int blue)
public static java.lang.String colorToString(int color, boolean rgb)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |