public class BufferedImageRaster extends AbstractDataRaster implements Cacheable, Disposable
height, width
Constructor and Description |
---|
BufferedImageRaster(int width,
int height,
int transparency,
Sector sector) |
BufferedImageRaster(Sector sector,
java.awt.image.BufferedImage bufferedImage) |
BufferedImageRaster(Sector sector,
java.awt.image.BufferedImage bufferedImage,
AVList list) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of any internal resources allocated by the object.
|
protected void |
doDrawOnTo(BufferedImageRaster canvas) |
void |
drawOnTo(DataRaster canvas)
Copies this raster into a specified raster.
|
void |
fill(java.awt.Color color) |
java.awt.image.BufferedImage |
getBufferedImage() |
java.awt.Graphics2D |
getGraphics() |
long |
getSizeInBytes()
Retrieves the approximate size of this object in bytes.
|
static DataRaster |
wrap(java.awt.image.BufferedImage image,
AVList params) |
static DataRaster |
wrapAsGeoreferencedRaster(java.awt.image.BufferedImage image,
AVList params) |
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
public BufferedImageRaster(int width, int height, int transparency, Sector sector)
public BufferedImageRaster(Sector sector, java.awt.image.BufferedImage bufferedImage)
public void dispose()
Disposable
dispose
in interface Disposable
protected void doDrawOnTo(BufferedImageRaster canvas)
public void drawOnTo(DataRaster canvas)
DataRaster
drawOnTo
in interface DataRaster
canvas
- - the raster to copy into.public void fill(java.awt.Color color)
public java.awt.image.BufferedImage getBufferedImage()
public java.awt.Graphics2D getGraphics()
public long getSizeInBytes()
Cacheable
getSizeInBytes
in interface Cacheable
Cacheable
object's size in bytespublic static DataRaster wrap(java.awt.image.BufferedImage image, AVList params)
public static DataRaster wrapAsGeoreferencedRaster(java.awt.image.BufferedImage image, AVList params)