public class IMImageProvider extends Object implements ImageProvider
| Constructor and Description |
|---|
IMImageProvider(ImageManager imgr,
ImageDataProvider dprov) |
IMImageProvider(ImageManager imgr,
String rset) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public IMImageProvider(ImageManager imgr, ImageDataProvider dprov)
public IMImageProvider(ImageManager imgr, String rset)
public BufferedImage getTileSetImage(String path, Colorization[] zations)
ImageProvidergetTileSetImage in interface ImageProviderpath - 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.public Mirage getTileImage(String path, Rectangle bounds, Colorization[] zations)
ImageProviderMirage. It should be
cropped from the tileset image identified by the supplied path.getTileImage in interface ImageProviderpath - 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.Copyright © 2015. All rights reserved.