com.flagstone.transform.util.image
Class ImageBlocker
java.lang.Object
com.flagstone.transform.util.image.ImageBlocker
public final class ImageBlocker
- extends Object
ImageBlocker 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.
- See Also:
ImageBlock
Method Summary |
void |
getImageAsBlocks(List<ImageBlock> blocks,
int blockWidth,
int blockHeight,
int imageWidth,
int imageHeight,
byte[] image)
Return an image stored in a a file as a list of ImageBlock objects that
can be used when creating ScreenVideo streams. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageBlocker
public ImageBlocker()
getImageAsBlocks
public void getImageAsBlocks(List<ImageBlock> blocks,
int blockWidth,
int blockHeight,
int imageWidth,
int imageHeight,
byte[] image)
- Return an image stored in a a file as a list of ImageBlock objects that
can be used when creating ScreenVideo streams.
The image is divided by tiling blocks of the specified width and height
across the image. For blocks at the right and bottom edges the size of
the block may be reduced so that it fits the image exactly. In other
words the blocks are not padded with extra pixel information.
- Parameters:
blocks
- a list of ImageBlock objectsblockWidth
- the width of a block in pixelsblockHeight
- the height of a block in pixelsimageWidth
- the width of the image in pixelsimageHeight
- the height of the image in pixelsimage
- the image data
Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.