class ImageCache extends GeneratingCache<String,BufferedImage>
Cache.ListEntry, Cache.NullIterator
Modifier and Type | Field and Description |
---|---|
private int |
outColorBase |
Constructor and Description |
---|
ImageCache(int outColorBase)
Construct the cache
|
Modifier and Type | Method and Description |
---|---|
protected BufferedImage |
generate(String filename)
Read in and map an image
|
private BufferedImage |
remapPalette(BufferedImage inImg)
Remap the colors in the given image, creating space for highlight
versions of the colors.
|
addDependency, find
cleanup, clear, dependenciesValid, getDependencies, has, lastSet, logAction, remove, size
protected BufferedImage generate(String filename) throws Exception
generate
in class GeneratingCache<String,BufferedImage>
filename
- The key to generate a value for.Exception
- If a value cannot be generated for any reason.private BufferedImage remapPalette(BufferedImage inImg) throws DynamicError
inImg
- The image to remapDynamicError