public enum ImageColorType extends Enum<ImageColorType> implements FriendlyNamed
| Enum Constant and Description |
|---|
BLACK_AND_WHITE |
COLOR_RGB |
GRAY_SCALE |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
createBufferedImage(int width,
int height) |
int |
getBufferedImageType() |
String |
getFriendlyName() |
static ImageColorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageColorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageColorType BLACK_AND_WHITE
public static final ImageColorType GRAY_SCALE
public static final ImageColorType COLOR_RGB
public static ImageColorType[] values()
for (ImageColorType c : ImageColorType.values()) System.out.println(c);
public static ImageColorType 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 String getFriendlyName()
getFriendlyName in interface FriendlyNamedpublic int getBufferedImageType()
BufferedImage color type.public BufferedImage createBufferedImage(int width, int height)
width - height - BufferedImage for this color type with the given width and height.Copyright © 2015. All Rights Reserved.