Class RawRenderedImage

java.lang.Object
com.github.jaiimageio.impl.common.SimpleRenderedImage
com.github.jaiimageio.impl.plugins.raw.RawRenderedImage
All Implemented Interfaces:
RenderedImage

public class RawRenderedImage extends SimpleRenderedImage
  • Field Details

    • originalSampleModel

      private SampleModel originalSampleModel
      The sample model for the original image.
    • currentTile

      private Raster currentTile
    • currentTileGrid

      private Point currentTileGrid
    • iis

      private RawImageInputStream iis
      The input stream we read from
    • reader

      private RawImageReader reader
      Caches the RawImageReader which creates this object. This variable is used to monitor the abortion.
    • param

      private ImageReadParam param
      The ImageReadParam to create this renderedImage.
    • imageIndex

      private int imageIndex
    • destinationRegion

      private Rectangle destinationRegion
      The destination bounds.
    • originalRegion

      private Rectangle originalRegion
    • sourceOrigin

      private Point sourceOrigin
    • originalDimension

      private Dimension originalDimension
    • maxXTile

      private int maxXTile
    • maxYTile

      private int maxYTile
    • scaleX

      private int scaleX
      The subsampling parameters.
    • scaleY

      private int scaleY
      The subsampling parameters.
    • xOffset

      private int xOffset
      The subsampling parameters.
    • yOffset

      private int yOffset
      The subsampling parameters.
    • destinationBands

      private int[] destinationBands
    • sourceBands

      private int[] sourceBands
    • nComp

      private int nComp
    • noTransform

      private boolean noTransform
      Coordinate transform is not needed from the source (image stream) to the destination.
    • rasForATile

      private WritableRaster rasForATile
      The raster for medialib tiles to share.
    • destImage

      private BufferedImage destImage
    • position

      private long position
      The position of the first sample of this image in the stream.
    • tileDataSize

      private long tileDataSize
      cache the size of the data for each tile in the stream.
    • originalNumXTiles

      private int originalNumXTiles
      The orginal number tiles in X direction.
  • Constructor Details

  • Method Details

    • getTile

      public Raster getTile(int tileX, int tileY)
    • readAsRaster

      public void readAsRaster(WritableRaster raster) throws IOException
      Throws:
      IOException
    • readSubsampledRaster

      private Raster readSubsampledRaster(WritableRaster raster) throws IOException
      Throws:
      IOException
    • setDestImage

      public void setDestImage(BufferedImage image)
    • clearDestImage

      public void clearDestImage()
    • getTileNum

      private int getTileNum(int x, int y)
    • clip

      private int clip(int value, int min, int max)