public final class NCamera extends NCaptureDevice
| Modifier and Type | Class and Description |
|---|---|
static class |
NCamera.CaptureResult
Bean that contains NCamera results.
|
NDevice.ChildCollection| Modifier and Type | Method and Description |
|---|---|
void |
addStillCaptureListener(NCameraStillCaptureListener listener)
Adds a listener for captured still image event.
|
NCameraStatus |
captureStill()
Gets still image from capture device (camera).
|
NCameraStatus |
focus()
Adjusts camera focus.
|
com.neurotec.media.NVideoFormat |
getCurrentStillFormat()
Gets current still image format.
|
Rectangle2D.Float |
getFocusRegion()
Gets coordinates of rectangular camera focus area.
|
com.neurotec.images.NImage |
getFrame()
Gets current frame from the capture device.
|
NCamera.CaptureResult |
getFrameWithTimeStamp()
Gets current frame from the capture device.
|
com.neurotec.media.NVideoFormat[] |
getStillFormats()
Gets still image formats supported by specified camera.
|
boolean |
isFocusRegionSupported()
Checks if focus region is supported on current camera.
|
boolean |
isFocusSupported()
Checks if current camera supports autofocus.
|
boolean |
isStillCaptureSupported()
Checks if still image obtain from camera is supported.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static com.neurotec.lang.NType |
nCameraStillCapturedCallbackNativeTypeOf() |
void |
removeStillCaptureListener(NCameraStillCaptureListener listener)
Removes a listener for captured still image event.
|
void |
resetFocus()
Resets camera focus.
|
void |
setCurrentStillFormat(com.neurotec.media.NVideoFormat format)
Sets current still image format.
|
void |
setFocusRegion(Rectangle2D.Float value)
Sets coordinates of rectangular camera focus area.
|
addCapturingChangedListener, getCurrentFormat, getFormats, getMediaType, isCapturing, removeCapturingChangedListener, setCurrentFormat, startCapturing, stopCapturinggetChildren, getDeviceType, getDisplayName, getId, getMake, getModel, getOwner, getParent, getPlugin, getSerialNumber, isAvailable, isDisconnectable, isPrivateaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic static com.neurotec.lang.NType nativeTypeOf()
public static com.neurotec.lang.NType nCameraStillCapturedCallbackNativeTypeOf()
public final com.neurotec.images.NImage getFrame()
public final NCamera.CaptureResult getFrameWithTimeStamp()
public final boolean isFocusSupported()
public final boolean isFocusRegionSupported()
public final Rectangle2D.Float getFocusRegion()
public final void setFocusRegion(Rectangle2D.Float value)
value - Rectangle2D.Float type structure defining a rectangle of focus region.public final void resetFocus()
public final NCameraStatus focus()
public final boolean isStillCaptureSupported()
public com.neurotec.media.NVideoFormat[] getStillFormats()
public com.neurotec.media.NVideoFormat getCurrentStillFormat()
public void setCurrentStillFormat(com.neurotec.media.NVideoFormat format)
format - One of NVideoFormat values.public final NCameraStatus captureStill()
public final void addStillCaptureListener(NCameraStillCaptureListener listener)
listener - The event listener to be added.public final void removeStillCaptureListener(NCameraStillCaptureListener listener)
listener - The event listener to be removed.Copyright © 2016 Neurotechnology. All rights reserved.