Bartosz Firyn (SarXos)

com.github.sarxos.webcam
Class WebcamUtils

java.lang.Object
  extended by com.github.sarxos.webcam.WebcamUtils

public class WebcamUtils
extends Object


Constructor Summary
WebcamUtils()
           
 
Method Summary
static void capture(Webcam webcam, File file)
           
static void capture(Webcam webcam, File file, String format)
           
static void capture(Webcam webcam, String filename)
           
static void capture(Webcam webcam, String filename, String format)
           
static ByteBuffer getImageByteBuffer(Webcam webcam, String format)
          Capture image as BYteBuffer.
static byte[] getImageBytes(Webcam webcam, String format)
           
static ResourceBundle loadRB(Class<?> clazz, Locale locale)
          Get resource bundle for specific class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebcamUtils

public WebcamUtils()
Method Detail

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 obtained
format - 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

Bartosz Firyn (SarXos)

Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.