All Packages Class Hierarchy This Package Previous Next Index
Class pinball.buffer.CameraFrame
java.lang.Object
|
+----pinball.buffer.CameraFrame
- public class CameraFrame
- extends Object
- implements Serializable
This is a frame grabed from the camera. It also has the dimensions of the frame.
-
frame
- The frame from the camera.
-
height
- The height of the frame.
-
id
- The id of the frame.
-
transfer
- The transfer size for the frame.
-
width
- The width of the frame.
-
xoffset
- The xoffset of the frame.
-
yoffset
- The yoffset of the frame.
-
CameraFrame(int, byte[], int, int, int, int)
-
Create a frame that was grabed by the camera.
-
CameraFrame(int, byte[], int, int, int, int, int)
-
Create a frame that was grabed by the camera.
-
CameraFrame(int, int, int, int, int, int, int)
-
Create a frame to be grabed by the camera.
-
getFrame()
- Get the frame.
-
getHeight()
- Get the height of the frame.
-
getID()
- Get the id of the frame.
-
getTransfer()
- Get the transfer size of the frame.
-
getWidth()
- Get the width of the frame.
-
getXOffset()
- Get the xoffset of the frame.
-
getYOffset()
- Get the yoffset of the frame.
-
setID(int)
- Set the ID.
frame
protected byte frame[]
- The frame from the camera.
id
protected int id
- The id of the frame.
width
protected int width
- The width of the frame.
height
protected int height
- The height of the frame.
xoffset
protected int xoffset
- The xoffset of the frame.
yoffset
protected int yoffset
- The yoffset of the frame.
transfer
protected int transfer
- The transfer size for the frame.
CameraFrame
public CameraFrame(int id,
int size,
int width,
int height,
int xoffset,
int yoffset,
int transfer)
- Create a frame to be grabed by the camera.
- Parameters:
- id - the frame's id
- size - the number of bytes of the frame.
- width - the width of the frame.
- height - the height of the frame.
- xoffset - the xoffset of the frame.
- yoffset - the yoffset of the frame.
- transfer - the transfer size of the frame.
CameraFrame
public CameraFrame(int id,
byte frame[],
int width,
int height,
int xoffset,
int yoffset,
int transfer)
- Create a frame that was grabed by the camera.
- Parameters:
- id - the frame's id
- frame - the bytes of the frame.
- width - the width of the frame.
- height - the height of the frame.
- xoffset - the xoffset of the frame.
- yoffset - the yoffset of the frame.
- transfer - the transfer size of the frame.
CameraFrame
public CameraFrame(int id,
byte frame[],
int width,
int height,
int xoffset,
int yoffset)
- Create a frame that was grabed by the camera.
- Parameters:
- id - the frame's id
- frame - the bytes of the frame.
- width - the width of the frame.
- height - the height of the frame.
- xoffset - the xoffset of the frame.
- yoffset - the yoffset of the frame.
getID
public int getID()
- Get the id of the frame.
- Returns:
- the id of the frame.
setID
public void setID(int id)
- Set the ID.
- Parameters:
- id - the id of the frame.
getFrame
public byte[] getFrame()
- Get the frame.
- Returns:
- frame to store image.
getWidth
public int getWidth()
- Get the width of the frame.
- Returns:
- width of the frame.
getHeight
public int getHeight()
- Get the height of the frame.
- Returns:
- height of the frame.
getXOffset
public int getXOffset()
- Get the xoffset of the frame.
- Returns:
- xoffset of the frame.
getYOffset
public int getYOffset()
- Get the yoffset of the frame.
- Returns:
- yoffset of the frame.
getTransfer
public int getTransfer()
- Get the transfer size of the frame.
- Returns:
- transfer size of the frame.
All Packages Class Hierarchy This Package Previous Next Index