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>

Various resolutions.

Author:
Bartosz Firyn (sarxos)

Enum Constant Summary
CIF
          Size 352x288
HD720
          Size 1280x720 also known as HD 720p.
HVGA
          Size 480x400
PAL
          Size 768x576
QQVGA
          Size 176x144
QVGA
          Size 320x240
QXGA
          Size 2048x1536
SVGA
          Size 800x600
SXGA
          Size 1280x1024
UXGA
          Size 1600x1200
VGA
          Size 640x480
WXGA
          Size 1280x768
XGA
          1024x768
 
Method Summary
 Dimension getSize()
          Get resolution size.
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
Size 176x144


QVGA

public static final WebcamResolution QVGA
Size 320x240


CIF

public static final WebcamResolution CIF
Size 352x288


HVGA

public static final WebcamResolution HVGA
Size 480x400


VGA

public static final WebcamResolution VGA
Size 640x480


PAL

public static final WebcamResolution PAL
Size 768x576


SVGA

public static final WebcamResolution SVGA
Size 800x600


XGA

public static final WebcamResolution XGA
1024x768


HD720

public static final WebcamResolution HD720
Size 1280x720 also known as HD 720p.


WXGA

public static final WebcamResolution WXGA
Size 1280x768


SXGA

public static final WebcamResolution SXGA
Size 1280x1024


UXGA

public static final WebcamResolution UXGA
Size 1600x1200


QXGA

public static final WebcamResolution QXGA
Size 2048x1536

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()
Get resolution size.

Returns:
Dimension object

Bartosz Firyn (SarXos)

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