com.threerings.media.image
Interface ImageDataProvider

All Known Implementing Classes:
BundledComponentRepository.ResourceBundleProvider, TileSetBundle

public interface ImageDataProvider

Provides access to image data for the image with the specified path. Images loaded from different data providers (which are differentiated by reference equality) will be considered distinct images with respect to caching.


Method Summary
 String getIdent()
          Returns a string identifier for this image data provider which wil be used to differentiate it from other providers and thus should be unique.
 BufferedImage loadImage(String path)
          Returns the image at the specified path.
 

Method Detail

getIdent

String getIdent()
Returns a string identifier for this image data provider which wil be used to differentiate it from other providers and thus should be unique.


loadImage

BufferedImage loadImage(String path)
                        throws IOException
Returns the image at the specified path.

Throws:
IOException