Package io.scanbot.sdk.imageprocessing
Enum OutputMode
- java.lang.Object
-
- java.lang.Enum<OutputMode>
-
- io.scanbot.sdk.imageprocessing.OutputMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OutputMode>
public enum OutputMode extends java.lang.Enum<OutputMode>
Output mode of binarization filter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANTIALIASEDANTIALIASED - When the source image is a document photo, this mode will produce nice, smooth, antialiased text in grayscale, which is typically more readable than the text in BINARY mode.BINARYBINARY - Black and white image, suitable for 1-bit compression.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OutputModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OutputMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BINARY
public static final OutputMode BINARY
BINARY - Black and white image, suitable for 1-bit compression.
-
ANTIALIASED
public static final OutputMode ANTIALIASED
ANTIALIASED - When the source image is a document photo, this mode will produce nice, smooth, antialiased text in grayscale, which is typically more readable than the text in BINARY mode. Antialiasing requires extra processing, which makes this mode slower than BINARY mode.
-
-
Method Detail
-
values
public static OutputMode[] 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 (OutputMode c : OutputMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OutputMode 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 namejava.lang.NullPointerException- if the argument is null
-
-