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).
-
ImageDefinition(int, int, int[])
- Constructs a new ImageDefinition.
-
getBitmap()
- get the image data for this part of the image.
-
getFrameNo()
- get the Frame number this part of the image is for.
-
getWidth()
- get the width of this part of the image.
-
getY()
- get the y co-ordinate of thus part of the image.
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
getFrameNo
public int getFrameNo()
- get the Frame number this part of the image is for.
- Returns:
- the frame number
getY
public int getY()
- get the y co-ordinate of thus part of the image.
- Returns:
- the y co-ordinate
getWidth
public int getWidth()
- get the width of this part of the image.
- Returns:
- the width
getBitmap
public int[] getBitmap()
- get the image data for this part of the image.
All Packages Class Hierarchy This Package Previous Next Index