|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.rfb.Rect
gnu.rfb.Raw
public class Raw
Provides encoding and decoding of images using the Raw encoding.
Field Summary | |
---|---|
byte[] |
bytes
|
PixelFormat |
pixelFormat
|
int[] |
pixels
|
Fields inherited from class gnu.rfb.Rect |
---|
count, h, w, x, y |
Constructor Summary | |
---|---|
Raw(int[] pixels,
PixelFormat pixelFormat,
int offsetX,
int offsetY,
int scanline,
int x,
int y,
int w,
int h)
Constructor for encoding an image into Raw. |
|
Raw(int x,
int y,
int w,
int h,
PixelFormat pixelFormat,
byte[] bytes)
Constructor for encoding an image into Raw. |
|
Raw(int x,
int y,
int w,
int h,
PixelFormat pixelFormat,
java.io.DataInputStream input)
Constructor for decoding Raw. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int[] |
decode()
Decodes from the input into an array of pixels as Integers. |
void |
readData()
Reads in the data pre-emptively to decoding in. |
void |
writeData(java.io.DataOutput output)
|
Methods inherited from class gnu.rfb.Rect |
---|
bestEncoding, encode, encode, encode, toString, transform |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public PixelFormat pixelFormat
public byte[] bytes
public int[] pixels
Constructor Detail |
---|
public Raw(int[] pixels, PixelFormat pixelFormat, int offsetX, int offsetY, int scanline, int x, int y, int w, int h)
pixels
- pixelFormat
- offsetX
- offsetY
- scanline
- x
- y
- w
- h
- public Raw(int x, int y, int w, int h, PixelFormat pixelFormat, byte[] bytes)
x
- y
- w
- h
- pixelFormat
- bytes
- public Raw(int x, int y, int w, int h, PixelFormat pixelFormat, java.io.DataInputStream input) throws java.io.IOException
x
- y
- w
- h
- pixelFormat
- input
-
java.io.IOException
Method Detail |
---|
public void writeData(java.io.DataOutput output) throws java.io.IOException
writeData
in class Rect
java.io.IOException
public void readData() throws java.io.IOException
java.io.IOException
- If unable to read from the input given in the constructor.public int[] decode() throws java.io.IOException
java.io.IOException
- If unable to read from the input given in the constructor.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Rect
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |