com.aspose.barcode

Enum ImageQualityMode

  • java.lang.Object
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ImageQualityMode>


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

    Specifies the quality of the created barcode image. Only appliable to Jpeg format, such as save as .jpg files

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      AntiAlias
      Specifeis Anti-aliased image rendering.
      Default
      Specifies No anti-aliasing image rendering.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String getImageQualityModeName(int imageQuality)
      Gets ImageQualityMode value name
      static int getImageQualityModeValue(java.lang.String imageQuality)
      Gets ImageQualityMode value
      int getValue() 
      static ImageQualityMode valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ImageQualityMode[] 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, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Default

        public static final ImageQualityMode Default

        Specifies No anti-aliasing image rendering.

      • AntiAlias

        public static final ImageQualityMode AntiAlias

        Specifeis Anti-aliased image rendering. Much better quality due to antialiasing, but at a higher performance cost.

    • Method Detail

      • values

        public static ImageQualityMode[] 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 (ImageQualityMode c : ImageQualityMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImageQualityMode 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
      • getValue

        public int getValue()
      • getImageQualityModeName

        public static java.lang.String getImageQualityModeName(int imageQuality)
        Gets ImageQualityMode value name
        Parameters:
        imageQuality - ImageQualityMode value
        Returns:
        ImageQualityMode value name
      • getImageQualityModeValue

        public static int getImageQualityModeValue(java.lang.String imageQuality)
        Gets ImageQualityMode value
        Parameters:
        imageQuality - ImageQualityMode value name
        Returns:
        ImageQualityMode value