All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Interface java.awt.image.RenderedImage

public interface RenderedImage
A RenderedImage is a common interface for objects which contain or can produce image data in the form of Rasters.


Method Index

 o getColorModel()
Return the ColorModel associated with this image.
 o getData()
Return the image as one large tile (for tile based images this will require fetching the whole image and copying the image data over).
 o getHeight()
Return the height of the RenderedImage.
 o getMaxTileX()
Return the index of the maximum tile in the X direction.
 o getMaxTileY()
Return the index of the maximum tile in the Y direction.
 o getMaxXCoord()
Return the maximum X coordinate (inclusive) of the rendered image.
 o getMaxYCoord()
Return the minimum Y coordinate (inclusive) of the rendered image.
 o getMinTileX()
Return the index of the minimum tile in the X direction.
 o getMinTileY()
Return the index of the minimum tile in the Y direction.
 o getMinXCoord()
Return the minimum X coordinate (inclusive) of the rendered image.
 o getMinYCoord()
Return the minimum Y coordinate (inclusive) of the rendered image.
 o getProperty(String)
Get a property from the property set of this image.
 o getPropertyNames()
Return a list of names recognized by getProperty(String).
 o getRect(Rectangle)
Compute and return an arbitrary region of the RenderedImage.
 o getRect(WritableRaster)
Compute an arbitrary rectangular region of the RenderedImage and copy it into a caller-supplied WritableRaster.
 o getSampleModel()
Return the SampleModel associated with this image.
 o getSources()
Return a vector of RenderedImages that are the sources of image data for this RenderedImage.
 o getTile(int, int)
Return tile (X, Y).
 o getTileGridXOffset()
Return the X offset of the tile grid relative to the origin, i.e., the X coordinate of the upper-left pixel of tile (0, 0).
 o getTileGridYOffset()
Return the Y offset of the tile grid relative to the origin, i.e., the Y coordinate of the upper-left pixel of tile (0, 0).
 o getTileHeight()
Return the tile height in pixels.
 o getTileWidth()
Return the tile width in pixels.
 o getWidth()
Return the width of the RenderedImage.
 o tilesAcross()
Return the number of tiles across the image.
 o tilesDown()
Return the number of tiles down the image.

Methods

 o getSources
public abstract Vector getSources()
Return a vector of RenderedImages that are the sources of image data for this RenderedImage. This method may return null.

 o getProperty
public abstract Object getProperty(String name)
Get a property from the property set of this image. The set of properties is determined at construction time and is immutable.

 o getPropertyNames
public abstract String[] getPropertyNames()
Return a list of names recognized by getProperty(String).

 o getColorModel
public abstract ColorModel getColorModel()
Return the ColorModel associated with this image. All Rasters returned from this image will have this as their ColorModel.

 o getSampleModel
public abstract SampleModel getSampleModel()
Return the SampleModel associated with this image. All Rasters returned from this image will have this as their SampleModel.

 o getWidth
public abstract int getWidth()
Return the width of the RenderedImage. Equivalent to getMaxXCoord() - getMinXCoord() + 1.

 o getHeight
public abstract int getHeight()
Return the height of the RenderedImage. Equivalent to getMaxYCoord() - getMinYCoord() + 1.

 o getMinXCoord
public abstract int getMinXCoord()
Return the minimum X coordinate (inclusive) of the rendered image. For an image with infinite extent, it could be Integer.MIN_VALUE.

 o getMaxXCoord
public abstract int getMaxXCoord()
Return the maximum X coordinate (inclusive) of the rendered image. For an image with infinite extent, it could be Integer.MAX_VALUE.

 o getMinYCoord
public abstract int getMinYCoord()
Return the minimum Y coordinate (inclusive) of the rendered image. For an image with infinite extent, it could be Integer.MIN_VALUE.

 o getMaxYCoord
public abstract int getMaxYCoord()
Return the minimum Y coordinate (inclusive) of the rendered image. For an image with infinite extent, it could be Integer.MAX_VALUE.

 o tilesAcross
public abstract int tilesAcross()
Return the number of tiles across the image. Equivalent to getMaxTileX() - getMinTileX() + 1.

 o tilesDown
public abstract int tilesDown()
Return the number of tiles down the image. Equivalent to getMaxTileY() - getMinTileY() + 1.

 o getMinTileX
public abstract int getMinTileX()
Return the index of the minimum tile in the X direction.

 o getMaxTileX
public abstract int getMaxTileX()
Return the index of the maximum tile in the X direction.

 o getMinTileY
public abstract int getMinTileY()
Return the index of the minimum tile in the Y direction.

 o getMaxTileY
public abstract int getMaxTileY()
Return the index of the maximum tile in the Y direction.

 o getTileWidth
public abstract int getTileWidth()
Return the tile width in pixels. All tiles must have the same width.

 o getTileHeight
public abstract int getTileHeight()
Return the tile height in pixels. All tiles must have the same height.

 o getTileGridXOffset
public abstract int getTileGridXOffset()
Return the X offset of the tile grid relative to the origin, i.e., the X coordinate of the upper-left pixel of tile (0, 0).

 o getTileGridYOffset
public abstract int getTileGridYOffset()
Return the Y offset of the tile grid relative to the origin, i.e., the Y coordinate of the upper-left pixel of tile (0, 0).

 o getTile
public abstract Raster getTile(int x,
                               int y)
Return tile (X, Y). Note that X and Y are indices into the tile array, not pixel locations. The Raster that is returned is live and will be updated if the image is changed.

Parameters:
x - the X index of the requested tile in the tile array.
y - the Y index of the requested tile in the tile array.
 o getData
public abstract Raster getData()
Return the image as one large tile (for tile based images this will require fetching the whole image and copying the image data over). The Raster returned is semantically a copy.

 o getRect
public abstract Raster getRect(Rectangle rect)
Compute and return an arbitrary region of the RenderedImage. Note that in general this may involve copying image data. The Raster returned is semantically a copy.

Parameters:
rect - the region of the RenderedImage to be returned.
 o getRect
public abstract WritableRaster getRect(WritableRaster raster)
Compute an arbitrary rectangular region of the RenderedImage and copy it into a caller-supplied WritableRaster. The region to be computed is determined from the bounds of the supplied WritableRaster. The supplied WritableRaster must have a ColorModel and SampleModel that are compatible with those of this image.

Parameters:
raster - a WritableRaster to hold the returned portion of the image.
Returns:
a reference to the supplied WritableRaster.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature