Package org.openpnp.capture
Class CaptureStream
- java.lang.Object
-
- org.openpnp.capture.CaptureStream
-
public class CaptureStream extends Object
-
-
Constructor Summary
Constructors Constructor Description CaptureStream(com.sun.jna.Pointer context, int streamId, CaptureFormat format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImagecapture()voidclose()booleangetAutoProperty(CaptureProperty property)com.sun.jna.PointergetContext()CaptureFormatgetFormat()intgetProperty(CaptureProperty property)PropertyLimitsgetPropertyLimits(CaptureProperty property)intgetStreamId()voidsetAutoProperty(CaptureProperty property, boolean on)voidsetProperty(CaptureProperty property, int value)StringtoString()
-
-
-
Constructor Detail
-
CaptureStream
public CaptureStream(com.sun.jna.Pointer context, int streamId, CaptureFormat format)
-
-
Method Detail
-
close
public void close()
-
getContext
public com.sun.jna.Pointer getContext()
-
getStreamId
public int getStreamId()
-
getFormat
public CaptureFormat getFormat()
-
getPropertyLimits
public PropertyLimits getPropertyLimits(CaptureProperty property) throws Exception
- Throws:
Exception
-
setAutoProperty
public void setAutoProperty(CaptureProperty property, boolean on) throws Exception
- Throws:
Exception
-
setProperty
public void setProperty(CaptureProperty property, int value) throws Exception
- Throws:
Exception
-
getAutoProperty
public boolean getAutoProperty(CaptureProperty property) throws Exception
- Throws:
Exception
-
getProperty
public int getProperty(CaptureProperty property) throws Exception
- Throws:
Exception
-
capture
public BufferedImage capture() throws Exception
- Throws:
Exception
-
-