Package com.aspose.barcode.generation
Enum Class BarCodeImageFormat
- All Implemented Interfaces:
Serializable,Comparable<BarCodeImageFormat>,Constable
Specifies the file format of the image.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies the bitmap (BMP) image format.Specifies the Enhanced Metafile (EMF) image format.Specifies the Graphics Interchange Format (GIF) image format.Specifies the Joint Photographic Experts Group (JPEG) image format.Specifies the Portable Document Format (PDF) image format.Specifies the W3C Portable Network Graphics (PNG) image format.Specifies the Enhanced Metafile (EMF) image format. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static android.graphics.Bitmap.CompressFormattoCompressFormat(BarCodeImageFormat format) static BarCodeImageFormatReturns the enum constant of this class with the specified name.static BarCodeImageFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BMP
Specifies the bitmap (BMP) image format.
-
GIF
Specifies the Graphics Interchange Format (GIF) image format.
-
JPEG
Specifies the Joint Photographic Experts Group (JPEG) image format.
-
PNG
Specifies the W3C Portable Network Graphics (PNG) image format.
-
WEBP
Specifies the Enhanced Metafile (EMF) image format. -
EMF
Specifies the Enhanced Metafile (EMF) image format. (Supported only on Windows platform, on *nix platforms is saved as PNG) -
PDF
Specifies the Portable Document Format (PDF) image format.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
toCompressFormat
-