public enum ImageFormatType extends Enum<ImageFormatType>
ImageIO.write(java.awt.image.RenderedImage, String, java.io.File)
Modifier and Type | Method and Description |
---|---|
static ImageFormatType |
fromMimeType(String mimeType) |
String |
getContentType() |
boolean |
isSupportsTransparency() |
static ImageFormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageFormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageFormatType gif
public static final ImageFormatType png
public static final ImageFormatType jpeg
public static ImageFormatType[] values()
for (ImageFormatType c : ImageFormatType.values()) System.out.println(c);
public static ImageFormatType 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 static ImageFormatType fromMimeType(String mimeType)
mimeType
- The type to check for.public String getContentType()
public boolean isSupportsTransparency()
Copyright © 2019 Communote team. All rights reserved.