public class MipMappedBufferedImageRaster extends BufferedImageRaster
Modifier and Type | Field and Description |
---|---|
protected BufferedImageRaster[] |
levelRasters |
height, width
Constructor and Description |
---|
MipMappedBufferedImageRaster(Sector sector,
java.awt.image.BufferedImage image)
Creates a mipmapped version of a BufferedImageRaster from a single BufferedImage instance.
|
MipMappedBufferedImageRaster(Sector sector,
java.awt.image.BufferedImage[] images)
Creates a mipmapped version of a BufferedImageRaster from multi-resolution array od BufferedImage instances.
|
Modifier and Type | Method and Description |
---|---|
protected BufferedImageRaster |
chooseRasterForCanvas(BufferedImageRaster canvas) |
protected int |
computeMipmapLevel(int sourceWidth,
int sourceHeight,
Sector sourceSector,
int destWidth,
int destHeight,
Sector destSector) |
void |
dispose()
Disposes of any internal resources allocated by the object.
|
protected void |
doDrawOnTo(BufferedImageRaster canvas) |
long |
getSizeInBytes()
Retrieves the approximate size of this object in bytes.
|
drawOnTo, fill, getBufferedImage, getGraphics, wrap, wrapAsGeoreferencedRaster
computeClipRect, computeGeographicToRasterTransform, computeSourceToDestTransform, getHeight, getSector, getSubRaster, getSubRaster, getWidth, setValue
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
protected BufferedImageRaster[] levelRasters
public MipMappedBufferedImageRaster(Sector sector, java.awt.image.BufferedImage image)
sector
- A sectorimage
- BufferedImagepublic MipMappedBufferedImageRaster(Sector sector, java.awt.image.BufferedImage[] images)
sector
- A sectorimages
- An array of BufferedImagesprotected BufferedImageRaster chooseRasterForCanvas(BufferedImageRaster canvas)
protected int computeMipmapLevel(int sourceWidth, int sourceHeight, Sector sourceSector, int destWidth, int destHeight, Sector destSector)
public void dispose()
Disposable
dispose
in interface Disposable
dispose
in class BufferedImageRaster
protected void doDrawOnTo(BufferedImageRaster canvas)
doDrawOnTo
in class BufferedImageRaster
public long getSizeInBytes()
Cacheable
getSizeInBytes
in interface Cacheable
getSizeInBytes
in class BufferedImageRaster
Cacheable
object's size in bytes