|
JSR-209 (Final Release) | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
RenderedImage is a common interface for objects which contain or can produce image data in the form of Rasters.
Restrictions
All implementing classes of this interface must be BufferedImage
Method Summary
WritableRastercopyData(WritableRaster raster)
Computes an arbitrary rectangular region of the RenderedImage
and copies it into a caller-supplied WritableRaster.
java.awt.image.ColorModelgetColorModel()
Returns the ColorModel associated with this image.
RastergetData()
Returns the image as one large tile (for tile based
images this will require fetching the whole image
and copying the image data over).
RastergetData(Rectangle rect)
Computes and returns an arbitrary region of the RenderedImage.
intgetHeight()
Returns the height of the RenderedImage.
intgetMinX()
Returns the minimum X coordinate (inclusive) of the RenderedImage.
intgetMinY()
Returns the minimum Y coordinate (inclusive) of the RenderedImage.
java.lang.ObjectgetProperty(java.lang.String name)
Gets a property from the property set of this image.
java.lang.String[]getPropertyNames()
Returns an array of names recognized by
getProperty(String)
or null, if no property names are recognized.
SampleModelgetSampleModel()
Returns the SampleModel associated with this image.
java.util.VectorgetSources()
Returns a vector of RenderedImages that are the immediate sources of
image data for this RenderedImage.
intgetWidth()
Returns the width of the RenderedImage.
Method Detail
getSources
public java.util.Vector getSources()
RenderedImage objects.
getProperty
public java.lang.Object getProperty(java.lang.String name)
name - the name of the property
Image.UndefinedProperty
getPropertyNames
public java.lang.String[] getPropertyNames()
getProperty(String)
or null, if no property names are recognized.
String array containing all of the
property names that getProperty(String) recognizes;
or null if no property names are recognized.
getColorModel
public java.awt.image.ColorModel getColorModel()
ColorModel of this image.
getSampleModel
public SampleModel getSampleModel()
SampleModel of this image.
getWidth
public int getWidth()
RenderedImage.
getHeight
public int getHeight()
RenderedImage.
getMinX
public int getMinX()
RenderedImage.
getMinY
public int getMinY()
RenderedImage.
getData
public Raster getData()
getData
public Raster getData(Rectangle rect)
rect - the region of the RenderedImage to be returned.
RenderedImage
indicated by the specified Rectangle.
copyData
public WritableRaster copyData(WritableRaster raster)
raster - a WritableRaster to hold the returned portion of the
image, or null.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
JSR-209 (Final Release)
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.