com.flagstone.transform.util.image
Class ImageBlocker

java.lang.Object
  extended by 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

Constructor Summary
ImageBlocker()
           
 
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
 

Constructor Detail

ImageBlocker

public ImageBlocker()
Method Detail

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 objects
blockWidth - the width of a block in pixels
blockHeight - the height of a block in pixels
imageWidth - the width of the image in pixels
imageHeight - the height of the image in pixels
image - the image data


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.