public enum SpriteGrayLevel extends Enum<SpriteGrayLevel>
Modifier and Type | Method and Description |
---|---|
Sprite |
buildSprite(int width,
int height,
List<CharSequence> strings) |
Sprite |
buildSpriteZ(int width,
int height,
String compressed) |
List<String> |
encode(BufferedImage img) |
List<String> |
encodeZ(BufferedImage img) |
static SpriteGrayLevel |
get(int n) |
int |
getNbColor() |
static SpriteGrayLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpriteGrayLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpriteGrayLevel GRAY_16
public static final SpriteGrayLevel GRAY_8
public static final SpriteGrayLevel GRAY_4
public static SpriteGrayLevel[] values()
for (SpriteGrayLevel c : SpriteGrayLevel.values()) System.out.println(c);
public static SpriteGrayLevel 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 SpriteGrayLevel get(int n)
public int getNbColor()
public List<String> encode(BufferedImage img)
public Sprite buildSprite(int width, int height, List<CharSequence> strings)
public List<String> encodeZ(BufferedImage img)
public Sprite buildSpriteZ(int width, int height, String compressed) throws IOException
IOException
Copyright © 2015. All Rights Reserved.