public static enum TileDescription.LevelMode extends Enum<TileDescription.LevelMode>
Enum Constant and Description |
---|
MIPMAP_LEVELS
The file contains multiple versions of the image.
|
ONE_LEVEL
The file contains only a single full-resolution level.
|
RIPMAP_LEVELS
Like
MIPMAP_LEVELS , but with more levels. |
Modifier and Type | Method and Description |
---|---|
static TileDescription.LevelMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TileDescription.LevelMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TileDescription.LevelMode ONE_LEVEL
A tiled
ONE_LEVEL
file is equivalent to a scan-line-based file;
the only difference is that pixels are accessed by tile rather
than by scan line.
public static final TileDescription.LevelMode MIPMAP_LEVELS
Each successive level is half the resolution of the previous level in both dimensions. The lowest-resolution level contains only a single pixel. For example, if the first level, with full resolution, contains 16×8 pixels, then the file contains four more levels with 8×4, 4×2, 2×1, and 1×1 pixels respectively.
public static final TileDescription.LevelMode RIPMAP_LEVELS
MIPMAP_LEVELS
, but with more levels.
The levels include all combinations of reducing the resolution of the first level by powers of two independently in both dimensions. For example, if the first level contains 4×4 pixels, then the file contains eight more levels, with the following resolutions:
2x4 1x4 4x2 2x2 1x2 4x1 2x1 1x1
public static TileDescription.LevelMode[] values()
for (TileDescription.LevelMode c : TileDescription.LevelMode.values()) System.out.println(c);
public static TileDescription.LevelMode 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 null