|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsquint.Camera
public class Camera
Camera is a class that provides access to the iSight camera built in to Apple iMac and Macbook computers. It should also provide access to cameras attached to other systems, but it has only been tested with iSight cameras.
Constructor Summary | |
---|---|
Camera()
Constructs a new Camera that will access the last (and hopefully only) camera used on the machine. |
|
Camera(java.lang.String name)
Constructs a new Camera given the name of the camera to access. |
Method Summary | |
---|---|
void |
activate()
Activate a camera for use in video mode (i.e., invoking getImage frequently). |
void |
deactivate()
Deactivate a camera. |
SImage |
getImage()
Retrieve an image file from a camera. |
static java.lang.String[] |
list()
Retrieve a list of the names of all available cameras. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Camera()
public Camera(java.lang.String name)
name
- the name of the camera deviceMethod Detail |
---|
public void activate()
public void deactivate()
public SImage getImage()
public static java.lang.String[] list()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |