public enum ImageType extends Enum<ImageType>
Modifier and Type | Field and Description |
---|---|
protected static IndexColorModel |
SAFE_WEB_COLORS_MODEL
Default web safe colors color model
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
createImage(Dimension dimension) |
abstract BufferedImage |
createImage(int width,
int height) |
String |
getFormatName() |
String |
getMimeType() |
static ImageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageType GIF
public static final ImageType PNG
public static final ImageType PNG8
public static final ImageType JPEG
protected static final IndexColorModel SAFE_WEB_COLORS_MODEL
public static ImageType[] values()
for (ImageType c : ImageType.values()) System.out.println(c);
public static ImageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract BufferedImage createImage(int width, int height)
public BufferedImage createImage(Dimension dimension)
public String getFormatName()
public String getMimeType()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.