|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ImageProvider
Provides a generic interface via which tileset images may be loaded. In most cases, a running
application will want to obtain images via the ClientImageManager, but in some circumstances a
simpler image provider may be desirable to avoid the overhead of the image manager
infrastructure when simple image loading is all that is desired.
| Method Summary | |
|---|---|
Mirage |
getTileImage(String path,
Rectangle bounds,
Colorization[] zations)
Obtains the tile image with the specified path in the form of a Mirage. |
BufferedImage |
getTileSetImage(String path,
Colorization[] zations)
Returns the raw tileset image with the specified path. |
| Method Detail |
|---|
BufferedImage getTileSetImage(String path,
Colorization[] zations)
path - the path that identifies the desired image (corresponds to the image path from
the tileset).zations - if non-null, colorizations to apply to the source image before returning it.
Mirage getTileImage(String path,
Rectangle bounds,
Colorization[] zations)
Mirage. It should be
cropped from the tileset image identified by the supplied path.
path - the path that identifies the desired image (corresponds to the image path from
the tileset).bounds - if non-null, the region of the image to be returned as a mirage. If null, the
entire image should be returned.zations - if non-null, colorizations to apply to the image before converting it into a
mirage.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||