Bartosz Firyn (SarXos)

com.github.sarxos.webcam
Enum WebcamResolution

java.lang.Object
  extended by java.lang.Enum<WebcamResolution>
      extended by com.github.sarxos.webcam.WebcamResolution
All Implemented Interfaces:
Serializable, Comparable<WebcamResolution>

public enum WebcamResolution
extends Enum<WebcamResolution>


Enum Constant Summary
CIF
          352x288
HD720
          1280x720
HVGA
           
PAL
           
QQVGA
          176x144
QVGA
          320x240
QXGA
           
SVGA
           
SXGA
           
UXGA
           
VGA
           
WXGA
           
XGA
          1024x768
 
Method Summary
 Dimension getSize()
           
static WebcamResolution valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WebcamResolution[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

QQVGA

public static final WebcamResolution QQVGA
176x144


QVGA

public static final WebcamResolution QVGA
320x240


CIF

public static final WebcamResolution CIF
352x288


HVGA

public static final WebcamResolution HVGA

VGA

public static final WebcamResolution VGA

PAL

public static final WebcamResolution PAL

SVGA

public static final WebcamResolution SVGA

XGA

public static final WebcamResolution XGA
1024x768


HD720

public static final WebcamResolution HD720
1280x720


WXGA

public static final WebcamResolution WXGA

SXGA

public static final WebcamResolution SXGA

UXGA

public static final WebcamResolution UXGA

QXGA

public static final WebcamResolution QXGA
Method Detail

values

public static WebcamResolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WebcamResolution c : WebcamResolution.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WebcamResolution valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getSize

public Dimension getSize()

Bartosz Firyn (SarXos)

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