|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.video.ImageBlock
public final class ImageBlock
ImageBlock is used to sub-divide an image into a set of blocks so they can be streamed using Screen Video. Image blocks are compared so only pixel information for the portions of the image that change are sent.
An image is divided by tiling the blocks across the image from top-left to bottom right. If the image is not covered an integer number of blocks then the size of the blocks along the right and bottom edges of the image are reduced in size.
DefineVideo
Constructor Summary | |
---|---|
ImageBlock(ImageBlock object)
Creates and initialises a ImageBlock object using the values copied from another ImageBlock object. |
|
ImageBlock(int blockWidth,
int blockHeight,
byte[] pixels)
Create a new image block with the specified width and height and image data. |
Method Summary | |
---|---|
ImageBlock |
copy()
Creates a complete copy of this object. |
byte[] |
getBlock()
Get the zipped image data for the block. |
int |
getHeight()
Get the height of the block. |
int |
getWidth()
Get the width of the block. |
boolean |
isEmpty()
When a ScreenVideo stream is created only the image blocks that change are included. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageBlock(int blockWidth, int blockHeight, byte[] pixels)
blockWidth
- the width of the block in pixels.blockHeight
- the height of the block in pixelspixels
- the pixels covered by the block, compressed using the zip
format.public ImageBlock(ImageBlock object)
object
- a ImageBlock object from which the values will be
copied.Method Detail |
---|
public int getWidth()
public int getHeight()
public byte[] getBlock()
public boolean isEmpty()
public ImageBlock copy()
copy
in interface Copyable<ImageBlock>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |