public enum PngColorType extends Enum<PngColorType>
| Enum Constant and Description |
|---|
GREYSCALE |
GREYSCALE_WITH_ALPHA |
INDEXED_COLOR |
TRUE_COLOR |
TRUE_COLOR_WITH_ALPHA |
| Modifier and Type | Method and Description |
|---|---|
static PngColorType |
getColorType(int value) |
static PngColorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PngColorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PngColorType GREYSCALE
public static final PngColorType TRUE_COLOR
public static final PngColorType INDEXED_COLOR
public static final PngColorType GREYSCALE_WITH_ALPHA
public static final PngColorType TRUE_COLOR_WITH_ALPHA
public static PngColorType[] values()
for (PngColorType c : PngColorType.values()) System.out.println(c);
public static PngColorType 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 PngColorType getColorType(int value)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.