Enum Class QRErrorLevel

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

public enum QRErrorLevel extends Enum<QRErrorLevel>

Level of Reed-Solomon error correction. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H.

  • Enum Constant Details

    • LEVEL_L

      public static final QRErrorLevel LEVEL_L

      Error correction Level L can by applied to QR and MicroQR barcodes. Allows recovery of 7% of the code text.

    • LEVEL_M

      public static final QRErrorLevel LEVEL_M

      Error correction Level M can be applied to QR barcodes, RectMicroQR barcodes and MicroQR barcodes with versions from M2 to M4. Allows recovery of 15% of the code text

    • LEVEL_Q

      public static final QRErrorLevel LEVEL_Q

      Error correction Level Q can be applied to QR barcodes and MicroQR barcodes with version M4. Allows recovery of 25% of the code text

    • LEVEL_H

      public static final QRErrorLevel LEVEL_H

      Error correction Level H can be applied to QR and RectMicroQR barcodes. Allows recovery of 30% of the code text

  • Method Details

    • values

      public static QRErrorLevel[] 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 QRErrorLevel 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
    • fromValue

      public static QRErrorLevel fromValue(int value)
    • getValue

      public int getValue()