com.twainconnect.core
Enum BitDepth

java.lang.Object
  extended by java.lang.Enum<BitDepth>
      extended by com.twainconnect.core.BitDepth
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BitDepth>

public enum BitDepth
extends java.lang.Enum<BitDepth>

Used for the TWAIN API

  1. bw is black and white 1 bit
  2. gray is grayscale 8 bit
  3. color is 24 bit color
color and palette are not supportd

Since:
5.0
Version:
5.0
Author:
twainconnect

Enum Constant Summary
bw
           
color
           
gray
           
 
Method Summary
 java.lang.String toString()
           
static BitDepth valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BitDepth[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

bw

public static final BitDepth bw

gray

public static final BitDepth gray

color

public static final BitDepth color
Method Detail

values

public static BitDepth[] 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 (BitDepth c : BitDepth.values())
    System.out.println(c);

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

valueOf

public static BitDepth valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<BitDepth>