Enum Class OutputMode

java.lang.Object
java.lang.Enum<OutputMode>
io.scanbot.sdk.imageprocessing.OutputMode
All Implemented Interfaces:
Serializable, Comparable<OutputMode>, Constable

public enum OutputMode extends Enum<OutputMode>
Output mode of binarization filter.
  • Enum Constant Details

    • 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 Details

    • values

      public static OutputMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OutputMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null