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,
BufferedImage bufferedImage) |
BufferedImageRaster(Sector sector,
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(Color color) |
BufferedImage |
getBufferedImage() |
Graphics2D |
getGraphics() |
long |
getSizeInBytes()
Retrieves the approximate size of this object in bytes.
|
static DataRaster |
wrap(BufferedImage image,
AVList params) |
static DataRaster |
wrapAsGeoreferencedRaster(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, BufferedImage bufferedImage)
public BufferedImageRaster(Sector sector, BufferedImage bufferedImage, AVList list)
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(Color color)
public BufferedImage getBufferedImage()
public Graphics2D getGraphics()
public long getSizeInBytes()
Cacheable
getSizeInBytes
in interface Cacheable
Cacheable
object's size in bytespublic static DataRaster wrap(BufferedImage image, AVList params)
public static DataRaster wrapAsGeoreferencedRaster(BufferedImage image, AVList params)