|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebcamDevice
Webcam device abstraction.
Nested Class Summary | |
---|---|
static interface |
WebcamDevice.BufferAccess
This interface should be implemented by all webcam devices supporting possibility to access raw bytes or direct bytes buffer from native webcam device. |
Method Summary | |
---|---|
void |
close()
Close device, however it can be open again. |
void |
dispose()
Dispose device. |
BufferedImage |
getImage()
Fetch image from underlying camera. |
String |
getName()
Get device name. |
Dimension |
getResolution()
Get currently set image size. |
Dimension[] |
getResolutions()
Get the list of all possible image resolutions. |
boolean |
isOpen()
Is webcam device open? |
void |
open()
Open device, it can be closed any time. |
void |
setResolution(Dimension size)
Set new expected image size. |
Method Detail |
---|
String getName()
Dimension[] getResolutions()
Dimension getResolution()
void setResolution(Dimension size)
size
- the size to be setBufferedImage getImage()
void open()
void close()
void dispose()
boolean isOpen()
|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |