Enum Class BarCodeImageFormat

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

public enum BarCodeImageFormat extends Enum<BarCodeImageFormat>

Specifies the file format of the image.

  • Enum Constant Details

    • BMP

      public static final BarCodeImageFormat BMP

      Specifies the bitmap (BMP) image format.

    • GIF

      public static final BarCodeImageFormat GIF

      Specifies the Graphics Interchange Format (GIF) image format.

    • JPEG

      public static final BarCodeImageFormat JPEG

      Specifies the Joint Photographic Experts Group (JPEG) image format.

    • PNG

      public static final BarCodeImageFormat PNG

      Specifies the W3C Portable Network Graphics (PNG) image format.

    • WEBP

      public static final BarCodeImageFormat WEBP
      Specifies the Enhanced Metafile (EMF) image format.
    • EMF

      public static final BarCodeImageFormat EMF
      Specifies the Enhanced Metafile (EMF) image format. (Supported only on Windows platform, on *nix platforms is saved as PNG)
    • PDF

      public static final BarCodeImageFormat PDF
      Specifies the Portable Document Format (PDF) image format.
  • Method Details

    • values

      public static BarCodeImageFormat[] 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 BarCodeImageFormat 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()
    • toCompressFormat

      public static android.graphics.Bitmap.CompressFormat toCompressFormat(BarCodeImageFormat format)