public class WebcamUtils
extends java.lang.Object
Constructor and Description |
---|
WebcamUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
capture(Webcam webcam,
java.io.File file) |
static void |
capture(Webcam webcam,
java.io.File file,
java.lang.String format) |
static void |
capture(Webcam webcam,
java.lang.String filename) |
static void |
capture(Webcam webcam,
java.lang.String filename,
java.lang.String format) |
static java.nio.ByteBuffer |
getImageByteBuffer(Webcam webcam,
java.lang.String format)
Capture image as BYteBuffer.
|
static byte[] |
getImageBytes(Webcam webcam,
java.lang.String format) |
static java.util.ResourceBundle |
loadRB(java.lang.Class<?> clazz,
java.util.Locale locale)
Get resource bundle for specific class.
|
public static final void capture(Webcam webcam, java.io.File file)
public static final void capture(Webcam webcam, java.io.File file, java.lang.String format)
public static final void capture(Webcam webcam, java.lang.String filename)
public static final void capture(Webcam webcam, java.lang.String filename, java.lang.String format)
public static final byte[] getImageBytes(Webcam webcam, java.lang.String format)
public static final java.nio.ByteBuffer getImageByteBuffer(Webcam webcam, java.lang.String format)
webcam
- the webcam from which image should be obtainedformat
- the file formatpublic static final java.util.ResourceBundle loadRB(java.lang.Class<?> clazz, java.util.Locale locale)
clazz
- the class for which resource bundle should be foundlocale
- the Locale
objectCopyright © 2012-2018 Bartosz Firyn (SarXos). All Rights Reserved.