| javax.media.jai.SourcelessOpImage com.sun.media.jai.opimage.PatternOpImage
All known Subclasses: com.sun.media.jai.opimage.ConstantOpImage,
PatternOpImage | public class PatternOpImage extends SourcelessOpImage (Code) | | An OpImage class to generate a repeating pattern of pixels.
PatternOpImage defines an image consisting of a repeated
pattern. The pattern is stored internally as a Raster, and
translated versions of the master tile (sharing the same
DataBuffer) are returned by computeTile().
|
Field Summary | |
protected Raster | pattern The master tile (0, 0) containing the pattern. |
Constructor Summary | |
public | PatternOpImage(Raster pattern, ColorModel colorModel, int minX, int minY, int width, int height) Constructs a PatternOpImage from a Raster. |
Method Summary | |
public Raster | computeTile(int tileX, int tileY) Returns a suitably translated version of the pattern tile
for reading. | public Raster | getTile(int tileX, int tileY) |
pattern | protected Raster pattern(Code) | | The master tile (0, 0) containing the pattern.
|
PatternOpImage | public PatternOpImage(Raster pattern, ColorModel colorModel, int minX, int minY, int width, int height)(Code) | | Constructs a PatternOpImage from a Raster.
Parameters: pattern - The Raster pattern to be repeated. Parameters: colorModel - The output image ColorModel. Parameters: width - The output image width. Parameters: height - The output image height. |
computeTile | public Raster computeTile(int tileX, int tileY)(Code) | | Returns a suitably translated version of the pattern tile
for reading.
Parameters: tileX - the X index of the tile Parameters: tileY - the Y index of the tile |
getTile | public Raster getTile(int tileX, int tileY)(Code) | | |
|
|