|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbitmaps.Pixel
public class Pixel
| Field Summary | |
|---|---|
byte |
blue
|
byte |
green
|
byte |
red
|
| Constructor Summary | |
|---|---|
Pixel()
Creates a new pixel with all zero values. |
|
Pixel(byte[] data)
Takes a set of bytes representing the pixel encoding and creates a new pixel from it. |
|
Pixel(Pixel pixel)
Creates a new pixel from the specified pixel, deep-cloning it to the primitive field level. |
|
| Method Summary | |
|---|---|
int |
getBlue()
|
byte[] |
getData(int dataLength)
Returns dataLength bytes from the pixel. |
int |
getGreen()
|
int |
getRed()
Returns the red pixel as an integer (all zero except for lowest 8 bits). |
void |
setAll(int intensity)
|
void |
setBlue(int intensity)
|
void |
setGreen(int intensity)
|
void |
setRed(int intensity)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public byte red
public byte green
public byte blue
| Constructor Detail |
|---|
public Pixel(byte[] data)
data - public Pixel(Pixel pixel)
pixel - public Pixel()
| Method Detail |
|---|
public byte[] getData(int dataLength)
dataLength - in bytes
public int getRed()
public int getGreen()
public int getBlue()
public void setRed(int intensity)
public void setGreen(int intensity)
public void setBlue(int intensity)
public void setAll(int intensity)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||