gnu.rfb
Class CoRREStub
java.lang.Object
gnu.rfb.Rect
gnu.rfb.CoRREStub
- All Implemented Interfaces:
- java.lang.Cloneable
public class CoRREStub
- extends Rect
CoRRE - Compact RRE Encoding.
We have an RRE header structure giving the number of subrectangles following.
Finally the data follows in the form [...]
where each is []. This means that the
whole rectangle must be at most 255x255 pixels.
Constructor Summary |
CoRREStub(int[] pixels,
PixelFormat pixelFormat,
int offsetX,
int offsetY,
int scanline,
int x,
int y,
int w,
int h)
Constructor to encode an array of pixels into a CoRRE, |
CoRREStub(int x,
int y,
int w,
int h,
CoRRE[] rects)
Constructor for encoding an array of CoRRE rectangles. |
Method Summary |
java.lang.Object |
clone()
|
void |
transform(int transformX,
int transformY)
|
void |
writeData(java.io.DataOutput output)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rects
public CoRRE[] rects
CoRREStub
public CoRREStub(int[] pixels,
PixelFormat pixelFormat,
int offsetX,
int offsetY,
int scanline,
int x,
int y,
int w,
int h)
- Constructor to encode an array of pixels into a CoRRE,
- Parameters:
pixels
- The array of pixels to encode.pixelFormat
- The current pixel format of the image.offsetX
- The offset in the X direction.offsetY
- The offset in the Y direction.scanline
- The width of a single scan line.x
- The X-coordinate of the image.y
- The Y-coordinate of the image.w
- The width of the image.h
- The height of the image
CoRREStub
public CoRREStub(int x,
int y,
int w,
int h,
CoRRE[] rects)
- Constructor for encoding an array of CoRRE rectangles.
- Parameters:
x
- The X-coordinate.y
- The y-coordinate.w
- The width.h
- The height.rects
- The rectangles to encode.
writeData
public void writeData(java.io.DataOutput output)
throws java.io.IOException
- Overrides:
writeData
in class Rect
- Throws:
java.io.IOException
transform
public void transform(int transformX,
int transformY)
- Overrides:
transform
in class Rect
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class Rect
- Throws:
java.lang.CloneNotSupportedException