Enum Class AutoSizeMode

java.lang.Object
java.lang.Enum<AutoSizeMode>
com.aspose.barcode.generation.AutoSizeMode
All Implemented Interfaces:
Serializable, Comparable<AutoSizeMode>, Constable

public enum AutoSizeMode extends Enum<AutoSizeMode>
Specifies the different types of automatic sizing modes.
  • Enum Constant Details

    • NONE

      public static final AutoSizeMode NONE
      Automatic resizing is disabled.
    • NEAREST

      public static final AutoSizeMode NEAREST
      Resizes barcode to nearest lowest possible size specified by ImageWidth and ImageHeight properties. Preserves default aspect ratio.
    • INTERPOLATION

      public static final AutoSizeMode INTERPOLATION
      Resizes barcode to specified size. Size can be specified by ImageWidth and ImageHeight properties. Generated barcode may be invalid (not readable) after scaling.
  • Method Details

    • values

      public static AutoSizeMode[] 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 AutoSizeMode 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
    • getValue

      public int getValue()