Class DataReaderTiled


  • public final class DataReaderTiled
    extends ImageDataReader
    Provides a data reader for TIFF file images organized by tiles.
    • Field Detail

      • tileWidth

        private final int tileWidth
      • tileLength

        private final int tileLength
      • bitsPerPixel

        private final int bitsPerPixel
      • compression

        private final int compression
      • byteOrder

        private final java.nio.ByteOrder byteOrder
    • Constructor Detail

      • DataReaderTiled

        public DataReaderTiled​(TiffDirectory directory,
                               PhotometricInterpreter photometricInterpreter,
                               int tileWidth,
                               int tileLength,
                               int bitsPerPixel,
                               int[] bitsPerSample,
                               int predictor,
                               int samplesPerPixel,
                               int sampleFormat,
                               int width,
                               int height,
                               int compression,
                               java.nio.ByteOrder byteOrder,
                               TiffImageData.Tiles imageData)
    • Method Detail

      • readRasterData

        public TiffRasterData readRasterData​(java.awt.Rectangle subImage)
                                      throws ImageReadException,
                                             java.io.IOException
        Description copied from class: ImageDataReader
        Defines a method for accessing the floating-point raster data in a TIFF image. These implementations of this method in DataReaderStrips and DataReaderTiled assume that this instance is of a compatible data type (floating-point) and that all access checks have already been performed.
        Specified by:
        readRasterData in class ImageDataReader
        Parameters:
        subImage - if non-null, instructs the access method to retrieve only a sub-section of the image data.
        Returns:
        a valid instance
        Throws:
        ImageReadException - in the event of an incompatible data form.
        java.io.IOException - in the event of I/O error.