java.lang.Object
java.lang.Enum<ImgMode>
com.itextpdf.pdfocr.onnx.conf.paddle.model.ImgMode
All Implemented Interfaces:
Serializable, Comparable<ImgMode>, java.lang.constant.Constable

public enum ImgMode extends Enum<ImgMode>
Enum for values under the img_mode key within a DecodeImage transform operation object in a config file.
  • Enum Constant Details

    • GRAY

      public static final ImgMode GRAY
      Value for GRAY config value.
    • RGB

      public static final ImgMode RGB
      Value for RGB config value.
    • BGR

      public static final ImgMode BGR
      Value for BGR config value.
  • Method Details

    • values

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

      public static ImgMode 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