com.github.sarxos.webcam
Class WebcamUtils
java.lang.Object
com.github.sarxos.webcam.WebcamUtils
public class WebcamUtils
- extends Object
WebcamUtils
public WebcamUtils()
capture
public static final void capture(Webcam webcam,
File file)
capture
public static final void capture(Webcam webcam,
File file,
String format)
capture
public static final void capture(Webcam webcam,
String filename)
capture
public static final void capture(Webcam webcam,
String filename,
String format)
getImageBytes
public static final byte[] getImageBytes(Webcam webcam,
String format)
getImageByteBuffer
public static final ByteBuffer getImageByteBuffer(Webcam webcam,
String format)
- Capture image as BYteBuffer.
- Parameters:
webcam
- the webcam from which image should be obtainedformat
- the file format
- Returns:
- Byte buffer
loadRB
public static final ResourceBundle loadRB(Class<?> clazz,
Locale locale)
- Get resource bundle for specific class.
- Parameters:
clazz
- the class for which resource bundle should be found
- Returns:
- Resource bundle
Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.