public enum SpriteGrayLevel extends java.lang.Enum<SpriteGrayLevel>
Modifier and Type | Method and Description |
---|---|
Sprite |
buildSprite(int width,
int height,
java.util.List<java.lang.String> strings) |
Sprite |
buildSpriteZ(int width,
int height,
java.lang.String compressed) |
java.util.List<java.lang.String> |
encode(java.awt.image.BufferedImage img) |
java.util.List<java.lang.String> |
encodeZ(java.awt.image.BufferedImage img) |
static SpriteGrayLevel |
get(int n) |
int |
getNbColor() |
static SpriteGrayLevel |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SpriteGrayLevel get(int n)
public int getNbColor()
public java.util.List<java.lang.String> encode(java.awt.image.BufferedImage img)
public Sprite buildSprite(int width, int height, java.util.List<java.lang.String> strings)
public java.util.List<java.lang.String> encodeZ(java.awt.image.BufferedImage img)
public Sprite buildSpriteZ(int width, int height, java.lang.String compressed)
Copyright © 2020. All Rights Reserved.