| Modifier and Type | Field and Description |
|---|---|
| protected ColorModel | colorModel
The image's ColorModel. |
| protected int | height
The image's height in pixels. |
| protected int | minX
The X coordinate of the image's upper-left pixel. |
| protected int | minY
The Y coordinate of the image's upper-left pixel. |
| protected Hashtable | properties
A Hashtable containing the image properties. |
| protected SampleModel | sampleModel
The image's SampleModel. |
| protected Vector | sources
The image's sources, stored in a Vector. |
| protected int | tileGridXOffset
The X coordinate of the upper-left pixel of tile (0, 0). |
| protected int | tileGridYOffset
The Y coordinate of the upper-left pixel of tile (0, 0). |
| protected int | tileHeight
The height of a tile. |
| protected int | tileWidth
The width of a tile. |
| protected int | width
The image's width in pixels. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public WritableRaster | Returns: a reference to the supplied WritableRaster, or to a new WritableRaster if the supplied one was null.a WritableRaster to hold the returned portion of
the image. dest)Implements java. Copies an arbitrary rectangular region of the RenderedImage into a caller-supplied WritableRaster. |
| public Rectangle | |
| public ColorModel | getColorModel()
Implements java. Returns the ColorModel of the image. |
| public Raster | Returns: a Raster containing a copy of this image's data.Implements java. Returns the entire image in a single Raster. |
| public Raster | getData(Rectangle
the region of the RenderedImage to be returned. bounds)Implements java. Returns an arbitrary rectangular region of the RenderedImage in a Raster. |
| public int | |
| public int | |
| public int | |
| public final int | getMaxX()
Returns the X coordinate of the column immediately to the right of the rightmost column of the image. |
| public final int | |
| public int | getMinTileX()
Implements java. Returns the horizontal index of the leftmost column of tiles. |
| public int | getMinTileY()
Implements java. Returns the vertical index of the uppermost row of tiles. |
| public int | getMinX()
Implements java. Returns the X coordinate of the leftmost column of the image. |
| public int | getMinY()
Implements java. Returns the X coordinate of the uppermost row of the image. |
| public int | getNumXTiles()
Implements java. Returns the number of tiles along the tile grid in the horizontal direction. |
| public int | getNumYTiles()
Implements java. Returns the number of tiles along the tile grid in the vertical direction. |
| public Object | getProperty(String
the name of the property to get, as a
name)String. @return a reference to the property
Object, or the value
java.awt.Image.UndefinedProperty.Implements java. Gets a property from the property set of this image. |
| public String[] | Returns: an array ofStrings representing valid
property names.Implements java. Returns a list of the properties recognized by this image. |
| public String[] | Returns: an array ofStrings giving the valid
property names.Returns an array of |
| public SampleModel | getSampleModel()
Implements java. Returns the SampleModel of the image. |
| public Vector | getSources()
Implements java. Returns a vector of RenderedImages that are the immediate sources of image data for this RenderedImage. |
| public int | getTileGridXOffset()
Implements java. Returns the X coordinate of the upper-left pixel of tile (0, 0). |
| public int | getTileGridYOffset()
Implements java. Returns the Y coordinate of the upper-left pixel of tile (0, 0). |
| public int | |
| public int | |
| public int | |
| public static int | tileXToX(int tx, int tileGridXOffset, int tileWidth)
Converts a horizontal tile index into the X coordinate of its upper left pixel relative to a given tile grid layout specified by its X offset and tile width. |
| public int | Returns: the X coordinate of the tile's upper left pixel.the horizontal index of a tile. tx)Converts a horizontal tile index into the X coordinate of its upper left pixel. |
| public static int | tileYToY(int ty, int tileGridYOffset, int tileHeight)
Converts a vertical tile index into the Y coordinate of its upper left pixel relative to a given tile grid layout specified by its Y offset and tile height. |
| public int | Returns: the Y coordinate of the tile's upper left pixel.the vertical index of a tile. ty)Converts a vertical tile index into the Y coordinate of its upper left pixel. |
| public static int | XToTileX(int x, int tileGridXOffset, int tileWidth)
Converts a pixel's X coordinate into a horizontal tile index relative to a given tile grid layout specified by its X offset and tile width. |
| public int | Returns: the X index of the tile containing the pixel.the X coordinate of a pixel. x)Converts a pixel's X coordinate into a horizontal tile index. |
| public static int | YToTileY(int y, int tileGridYOffset, int tileHeight)
Converts a pixel's Y coordinate into a vertical tile index relative to a given tile grid layout specified by its Y offset and tile height. |
| public int | Returns: the Y index of the tile containing the pixel.the Y coordinate of a pixel. y)Converts a pixel's Y coordinate into a vertical tile index. |
| colorModel | back to summary |
|---|---|
| protected ColorModel colorModel The image's ColorModel. | |
| height | back to summary |
|---|---|
| protected int height The image's height in pixels. | |
| minX | back to summary |
|---|---|
| protected int minX The X coordinate of the image's upper-left pixel. | |
| minY | back to summary |
|---|---|
| protected int minY The Y coordinate of the image's upper-left pixel. | |
| properties | back to summary |
|---|---|
| protected Hashtable<String, Object> properties A Hashtable containing the image properties. | |
| sampleModel | back to summary |
|---|---|
| protected SampleModel sampleModel The image's SampleModel. | |
| sources | back to summary |
|---|---|
| protected Vector<RenderedImage> sources The image's sources, stored in a Vector. | |
| tileGridXOffset | back to summary |
|---|---|
| protected int tileGridXOffset The X coordinate of the upper-left pixel of tile (0, 0). | |
| tileGridYOffset | back to summary |
|---|---|
| protected int tileGridYOffset The Y coordinate of the upper-left pixel of tile (0, 0). | |
| tileHeight | back to summary |
|---|---|
| protected int tileHeight The height of a tile. | |
| tileWidth | back to summary |
|---|---|
| protected int tileWidth The width of a tile. | |
| width | back to summary |
|---|---|
| protected int width The image's width in pixels. | |
| SimpleRenderedImage | back to summary |
|---|---|
| public SimpleRenderedImage() | |
| copyData | back to summary |
|---|---|
| public WritableRaster copyData(WritableRaster dest) Implements java. Copies an arbitrary rectangular region of the RenderedImage into a caller-supplied WritableRaster. The region to be computed is determined by clipping the bounds of the supplied WritableRaster against the bounds of the image. The supplied WritableRaster must have a SampleModel that is compatible with that of the image. If the raster argument is null, the entire image will be copied into a newly-created WritableRaster with a SampleModel that is compatible with that of the image.
| |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Returns a Rectangle indicating the image bounds. | |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel() Implements java. Returns the ColorModel of the image.
| |
| getData | back to summary |
|---|---|
| public Raster getData() Implements java. Returns the entire image in a single Raster. For images with multiple tiles this will require making a copy. The returned Raster is semantically a copy. This means that updates to the source image will not be reflected in the returned Raster. For non-writable (immutable) source images, the returned value may be a reference to the image's internal data. The returned Raster should be considered non-writable; any attempt to alter its pixel data (such as by casting it to WritableRaster or obtaining and modifying its DataBuffer) may result in undefined behavior. The copyData method should be used if the returned Raster is to be modified. | |
| getData | back to summary |
|---|---|
| public Raster getData(Rectangle bounds) Implements java. Returns an arbitrary rectangular region of the RenderedImage in a Raster. The rectangle of interest will be clipped against the image bounds. The returned Raster is semantically a copy. This means that updates to the source image will not be reflected in the returned Raster. For non-writable (immutable) source images, the returned value may be a reference to the image's internal data. The returned Raster should be considered non-writable; any attempt to alter its pixel data (such as by casting it to WritableRaster or obtaining and modifying its DataBuffer) may result in undefined behavior. The copyData method should be used if the returned Raster is to be modified. | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements java. Returns the height of the image.
| |
| getMaxTileX | back to summary |
|---|---|
| public int getMaxTileX() Returns the horizontal index of the rightmost column of tiles. getMaxTileX() is implemented in terms of getMaxX() and so does not need to be implemented by subclasses. | |
| getMaxTileY | back to summary |
|---|---|
| public int getMaxTileY() Returns the vertical index of the bottom row of tiles. getMaxTileY() is implemented in terms of getMaxY() and so does not need to be implemented by subclasses. | |
| getMaxX | back to summary |
|---|---|
| public final int getMaxX() Returns the X coordinate of the column immediately to the right of the rightmost column of the image. getMaxX() is implemented in terms of getMinX() and getWidth() and so does not need to be implemented by subclasses. | |
| getMaxY | back to summary |
|---|---|
| public final int getMaxY() Returns the Y coordinate of the row immediately below the bottom row of the image. getMaxY() is implemented in terms of getMinY() and getHeight() and so does not need to be implemented by subclasses. | |
| getMinTileX | back to summary |
|---|---|
| public int getMinTileX() Implements java. Returns the horizontal index of the leftmost column of tiles. getMinTileX() is implemented in terms of getMinX() and so does not need to be implemented by subclasses.
| |
| getMinTileY | back to summary |
|---|---|
| public int getMinTileY() Implements java. Returns the vertical index of the uppermost row of tiles. getMinTileY() is implemented in terms of getMinY() and so does not need to be implemented by subclasses.
| |
| getMinX | back to summary |
|---|---|
| public int getMinX() Implements java. Returns the X coordinate of the leftmost column of the image.
| |
| getMinY | back to summary |
|---|---|
| public int getMinY() Implements java. Returns the X coordinate of the uppermost row of the image.
| |
| getNumXTiles | back to summary |
|---|---|
| public int getNumXTiles() Implements java. Returns the number of tiles along the tile grid in the horizontal direction. getNumXTiles() is implemented in terms of getMinTileX() and getMaxTileX() and so does not need to be implemented by subclasses.
| |
| getNumYTiles | back to summary |
|---|---|
| public int getNumYTiles() Implements java. Returns the number of tiles along the tile grid in the vertical direction. getNumYTiles() is implemented in terms of getMinTileY() and getMaxTileY() and so does not need to be implemented by subclasses.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) Implements java. Gets a property from the property set of this image. If the
property name is not recognized,
| |
| getPropertyNames | back to summary |
|---|---|
| public String[] getPropertyNames() Implements java. Returns a list of the properties recognized by this image. If
no properties are available, | |
| getPropertyNames | back to summary |
|---|---|
| public String[] getPropertyNames(String prefix) Returns an array of The default implementation calls
| |
| getSampleModel | back to summary |
|---|---|
| public SampleModel getSampleModel() Implements java. Returns the SampleModel of the image.
| |
| getSources | back to summary |
|---|---|
| public Vector Implements java. Doc from java. Returns a vector of RenderedImages that are the immediate sources of image data for this RenderedImage. This method returns null if the RenderedImage object has no information about its immediate sources. It returns an empty Vector if the RenderedImage object has no immediate sources.
| |
| getTileGridXOffset | back to summary |
|---|---|
| public int getTileGridXOffset() Implements java. Returns the X coordinate of the upper-left pixel of tile (0, 0).
| |
| getTileGridYOffset | back to summary |
|---|---|
| public int getTileGridYOffset() Implements java. Returns the Y coordinate of the upper-left pixel of tile (0, 0).
| |
| getTileHeight | back to summary |
|---|---|
| public int getTileHeight() Implements java. Returns the height of a tile.
| |
| getTileWidth | back to summary |
|---|---|
| public int getTileWidth() Implements java. Returns the width of a tile.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements java. Returns the width of the image.
| |
| tileXToX | back to summary |
|---|---|
| public static int tileXToX(int tx, int tileGridXOffset, int tileWidth) Converts a horizontal tile index into the X coordinate of its upper left pixel relative to a given tile grid layout specified by its X offset and tile width. | |
| tileXToX | back to summary |
|---|---|
| public int tileXToX(int tx) Converts a horizontal tile index into the X coordinate of its upper left pixel. This is a convenience method. No attempt is made to detect out-of-range indices.
| |
| tileYToY | back to summary |
|---|---|
| public static int tileYToY(int ty, int tileGridYOffset, int tileHeight) Converts a vertical tile index into the Y coordinate of its upper left pixel relative to a given tile grid layout specified by its Y offset and tile height. | |
| tileYToY | back to summary |
|---|---|
| public int tileYToY(int ty) Converts a vertical tile index into the Y coordinate of its upper left pixel. This is a convenience method. No attempt is made to detect out-of-range indices.
| |
| XToTileX | back to summary |
|---|---|
| public static int XToTileX(int x, int tileGridXOffset, int tileWidth) Converts a pixel's X coordinate into a horizontal tile index relative to a given tile grid layout specified by its X offset and tile width. | |
| XToTileX | back to summary |
|---|---|
| public int XToTileX(int x) Converts a pixel's X coordinate into a horizontal tile index. This is a convenience method. No attempt is made to detect out-of-range coordinates.
| |
| YToTileY | back to summary |
|---|---|
| public static int YToTileY(int y, int tileGridYOffset, int tileHeight) Converts a pixel's Y coordinate into a vertical tile index relative to a given tile grid layout specified by its Y offset and tile height. | |
| YToTileY | back to summary |
|---|---|
| public int YToTileY(int y) Converts a pixel's Y coordinate into a vertical tile index. This is a convenience method. No attempt is made to detect out-of-range coordinates.
| |