| An OpImage implementing the "AWTImage" operation as
described in javax.media.jai.operator.AWTImageDescriptor .
It takes a regular java.awt.Image and converts it into a
javax.media.jai.PlanarImage.
The layout of the PlanarImage may be specified using the
ImageLayout parameter at construction. The image
bounds (minX, minY, width, height), SampleModel , and
ColorModel , if supplied, are ignored. The tile grid
offsets will be ignored if neither of the tile dimensions are
supplied or equal the respective image dimensions.
The image origin is forced to (0, 0) and the width and height
to the width and height, respectively, of the AWT image parameter.
If a tile dimension is not set it defaults to the corresponding
image dimension. If neither tile dimension is set or both equal the
corresponding image dimensions, the tile grid offsets default to the
image origin.
The SampleModel is forced to a
SinglePixelPackedSampleModel if the tile dimensions equal
the image dimensions, otherwise it is forced to a
PixelInterleavedSampleModel . In either case the
ColorModel is set using
PlanarImage.createColorModel() .
See Also: javax.media.jai.operator.AWTImageDescriptor See Also: AWTImageRIF |