|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.rfb.PixelFormat
public class PixelFormat
Represents the pixel format of pixels being sent between client and server.
Field Summary | |
---|---|
static PixelFormat |
BGR233
|
boolean |
bigEndian
|
int |
bitsPerPixel
|
int |
blueMax
|
int |
blueShift
|
int |
depth
|
int |
greenMax
|
int |
greenShift
|
int |
redMax
|
int |
redShift
|
static PixelFormat |
RGB888
|
boolean |
trueColour
|
Constructor Summary | |
---|---|
PixelFormat()
Empty constructor for custom pixel formats. |
|
PixelFormat(java.io.DataInput input)
Reads in a PixelFormat data from input and creates an instance. |
|
PixelFormat(int bitsPerPixel,
int depth,
boolean bigEndian,
boolean trueColour,
int redMax,
int greenMax,
int blueMax,
int redShift,
int greenShift,
int blueShift)
Default Constructor for a PixelFormat. |
|
PixelFormat(PixelFormat pixelFormat)
Creates a PixelFormat based on an existing one. |
Method Summary | |
---|---|
int |
deTranslatePixel(int pixel)
UNTESTED An attempt to de-translate a pixel based on format. |
java.awt.image.DirectColorModel |
getDirectColorModel()
|
void |
print(java.io.PrintStream stream)
Prints the PixelFormat data to a PrintStream. |
void |
setDirectColorModel(java.awt.image.DirectColorModel directColorModel)
|
java.awt.image.DirectColorModel |
toDirectColorModel()
|
int |
translatePixel(int pixel)
Translates a pixel based on the format. |
void |
writeData(java.io.DataOutput output)
Writes the PixelFormat data to the output. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PixelFormat BGR233
public static final PixelFormat RGB888
public int bitsPerPixel
public int depth
public boolean bigEndian
public boolean trueColour
public int redMax
public int greenMax
public int blueMax
public int redShift
public int greenShift
public int blueShift
Constructor Detail |
---|
public PixelFormat()
public PixelFormat(int bitsPerPixel, int depth, boolean bigEndian, boolean trueColour, int redMax, int greenMax, int blueMax, int redShift, int greenShift, int blueShift)
bitsPerPixel
- depth
- bigEndian
- trueColour
- redMax
- greenMax
- blueMax
- redShift
- greenShift
- blueShift
- public PixelFormat(java.io.DataInput input) throws java.io.IOException
input
- The input to read from.
java.io.IOException
- If unable to read from the input.public PixelFormat(PixelFormat pixelFormat)
pixelFormat
- The PixelFormat to copy from.Method Detail |
---|
public void writeData(java.io.DataOutput output) throws java.io.IOException
output
- The output to write to.
java.io.IOException
- If unable to write to the output.public void print(java.io.PrintStream stream)
stream
- The stream to print to.public int translatePixel(int pixel)
pixel
- The pixel to translate.
public int deTranslatePixel(int pixel)
pixel
- The pixel to de-translate.
public java.awt.image.DirectColorModel toDirectColorModel()
public java.awt.image.DirectColorModel getDirectColorModel()
public void setDirectColorModel(java.awt.image.DirectColorModel directColorModel)
directColorModel
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |