|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.RgbVal
public class RgbVal
Helper class for manipulating RGB values. All functions are static.
Constructor Summary | |
---|---|
RgbVal()
|
Method Summary | |
---|---|
static byte |
getB(int ARGB)
Extracts blue byte from input ARGB word. |
static byte |
getG(int ARGB)
Extracts green byte from input ARGB word. |
static byte |
getR(int ARGB)
Extracts red byte from input ARGB word. |
static int |
toRgb(byte R,
byte G,
byte B)
Converts byte R, G, and B values to an ARGB word. |
static byte |
toSignedByte(byte b)
Converts from an unsigned bit field (as stored in an ARGB word to a signed byte value (that we can do computation on). |
static int |
toUnsignedInt(byte b)
Converts from a signed byte value (which we do computation on) to an unsigned bit field (as stored in an ARGB word). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RgbVal()
Method Detail |
---|
public static int toRgb(byte R, byte G, byte B)
R
- input signed red byteG
- input signed green byteB
- input signed blue byte
public static byte getB(int ARGB)
ARGB
- the input color ARGB word.
public static byte getG(int ARGB)
ARGB
- the input color ARGB word.
public static byte getR(int ARGB)
ARGB
- the input color ARGB word.
public static byte toSignedByte(byte b)
b
- the unsigned byte value.
public static int toUnsignedInt(byte b)
b
- the signed byte value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |