|
JSR-209 (Final Approval Ballot) | ||||||||||
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
WritableRaster
copyData(WritableRaster raster)
Computes an arbitrary rectangular region of the RenderedImage
and copies it into a caller-supplied WritableRaster.
java.awt.image.ColorModel
getColorModel()
Returns the ColorModel associated with this image.
Raster
getData()
Returns the image as one large tile (for tile based
images this will require fetching the whole image
and copying the image data over).
Raster
getData(Rectangle rect)
Computes and returns an arbitrary region of the RenderedImage.
int
getHeight()
Returns the height of the RenderedImage.
int
getMinX()
Returns the minimum X coordinate (inclusive) of the RenderedImage.
int
getMinY()
Returns the minimum Y coordinate (inclusive) of the RenderedImage.
java.lang.Object
getProperty(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.
SampleModel
getSampleModel()
Returns the SampleModel associated with this image.
java.util.Vector
getSources()
Returns a vector of RenderedImages that are the immediate sources of
image data for this RenderedImage.
int
getWidth()
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 Approval Ballot)
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.
For more information, please consult the JSR 209 specification.