public enum BarCodeImageFormat extends java.lang.Enum<BarCodeImageFormat>
Specifies the file format of the image.
Enum Constant and Description |
---|
BMP
Specifies the bitmap (BMP) image format.
|
EMF
Specifies the Enhanced Metafile (EMF) 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static Bitmap.CompressFormat |
toCompressFormat(BarCodeImageFormat format) |
static BarCodeImageFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BarCodeImageFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BarCodeImageFormat BMP
Specifies the bitmap (BMP) image format.
public static final BarCodeImageFormat GIF
Specifies the Graphics Interchange Format (GIF) image format.
public static final BarCodeImageFormat JPEG
Specifies the Joint Photographic Experts Group (JPEG) image format.
public static final BarCodeImageFormat PNG
Specifies the W3C Portable Network Graphics (PNG) image format.
public static final BarCodeImageFormat WEBP
public static final BarCodeImageFormat EMF
public static BarCodeImageFormat[] values()
for (BarCodeImageFormat c : BarCodeImageFormat.values()) System.out.println(c);
public static BarCodeImageFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static Bitmap.CompressFormat toCompressFormat(BarCodeImageFormat format)