public enum PictureEncoding extends java.lang.Enum<PictureEncoding>
Valid options are jpg, bmp, gif and png. Note that unaccelerated image types (gif, png, bmp) will take much longer to save than JPG which is hardware accelerated.
| Enum Constant and Description |
|---|
BMP
bmp.
|
GIF
gif.
|
JPG
jpg.
|
PNG
png.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue()
Get the value corresponding to this PictureEncoding.
|
static PictureEncoding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PictureEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PictureEncoding JPG
public static final PictureEncoding BMP
public static final PictureEncoding GIF
public static final PictureEncoding PNG
public static PictureEncoding[] values()
for (PictureEncoding c : PictureEncoding.values()) System.out.println(c);
public static PictureEncoding 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 java.lang.String getValue()