|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.sarxos.webcam.ds.buildin.WebcamDefaultDevice
public class WebcamDefaultDevice
| Field Summary | |
|---|---|
static Dimension |
SIZE_CIF
|
static Dimension |
SIZE_HVGA
|
static Dimension |
SIZE_QQVGA
|
static Dimension |
SIZE_QVGA
|
static Dimension |
SIZE_VGA
|
static Dimension |
SIZE_XGA
|
| Constructor Summary | |
|---|---|
protected |
WebcamDefaultDevice(Device 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 |
getSize()
Get currently set image size. |
Dimension[] |
getSizes()
Get the list of all possible image resolutions. |
void |
open()
Open device, it can be closed any time. |
void |
setSize(Dimension size)
Set new expected image size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Dimension SIZE_QQVGA
public static final Dimension SIZE_QVGA
public static final Dimension SIZE_CIF
public static final Dimension SIZE_HVGA
public static final Dimension SIZE_VGA
public static final Dimension SIZE_XGA
| Constructor Detail |
|---|
protected WebcamDefaultDevice(Device device)
| Method Detail |
|---|
public String getName()
WebcamDevice
getName in interface WebcamDevicepublic Dimension[] getSizes()
WebcamDevice
getSizes in interface WebcamDevicepublic Dimension getSize()
WebcamDevice
getSize in interface WebcamDevicepublic void setSize(Dimension size)
WebcamDevice
setSize in interface WebcamDevicesize - the size to be setpublic BufferedImage getImage()
WebcamDevice
getImage in interface WebcamDevicepublic void open()
WebcamDevice
open in interface WebcamDevicepublic void close()
WebcamDevice
close in interface WebcamDevicepublic void dispose()
WebcamDevice
dispose in interface WebcamDevice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||