All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class demo.jcsp.ImageDefinition

java.lang.Object
   |
   +----demo.jcsp.ImageDefinition

public class ImageDefinition
extends Object
implements Serializable

Description

The ImageDefinition class is used to wrap up one line of image data into an Object which can be sent accross a Channel. Also stored with the image data is the y co-ordinate of the line and the frameNo (to handle multi framed images).


Constructor Index

 o ImageDefinition(int, int, int[])
Constructs a new ImageDefinition.

Method Index

 o getBitmap()
get the image data for this part of the image.
 o getFrameNo()
get the Frame number this part of the image is for.
 o getWidth()
get the width of this part of the image.
 o getY()
get the y co-ordinate of thus part of the image.

Constructors

 o ImageDefinition
 public ImageDefinition(int frameNo,
                        int y,
                        int bitmap[])
Constructs a new ImageDefinition. The image data is copied when the object is created.

Parameters:
frameNo - the frame number
y - the y co-ordinate
bitmap - the image data

Methods

 o getFrameNo
 public int getFrameNo()
get the Frame number this part of the image is for.

Returns:
the frame number
 o getY
 public int getY()
get the y co-ordinate of thus part of the image.

Returns:
the y co-ordinate
 o getWidth
 public int getWidth()
get the width of this part of the image.

Returns:
the width
 o getBitmap
 public int[] getBitmap()
get the image data for this part of the image.


All Packages  Class Hierarchy  This Package  Previous  Next  Index