Class TiffImageData.Tiles
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.TiffImageData
-
- org.apache.commons.imaging.formats.tiff.TiffImageData.Tiles
-
- Enclosing class:
- TiffImageData
public static class TiffImageData.Tiles extends TiffImageData
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.imaging.formats.tiff.TiffImageData
TiffImageData.ByteSourceData, TiffImageData.Data, TiffImageData.Strips, TiffImageData.Tiles
-
-
Field Summary
Fields Modifier and Type Field Description private int
tileLength
TiffElement.DataElement[]
tiles
private int
tileWidth
-
Constructor Summary
Constructors Constructor Description Tiles(TiffElement.DataElement[] tiles, int tileWidth, int tileLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageDataReader
getDataReader(TiffDirectory directory, PhotometricInterpreter photometricInterpreter, int bitsPerPixel, int[] bitsPerSample, int predictor, int samplesPerPixel, int width, int height, int compression, java.nio.ByteOrder byteOrder)
TiffElement.DataElement[]
getImageData()
int
getTileHeight()
Get the height of individual tiles.int
getTileWidth()
Get the width of individual tiles.boolean
stripsNotTiles()
-
-
-
Field Detail
-
tiles
public final TiffElement.DataElement[] tiles
-
tileWidth
private final int tileWidth
-
tileLength
private final int tileLength
-
-
Constructor Detail
-
Tiles
public Tiles(TiffElement.DataElement[] tiles, int tileWidth, int tileLength)
-
-
Method Detail
-
getImageData
public TiffElement.DataElement[] getImageData()
- Specified by:
getImageData
in classTiffImageData
-
stripsNotTiles
public boolean stripsNotTiles()
- Specified by:
stripsNotTiles
in classTiffImageData
-
getDataReader
public ImageDataReader getDataReader(TiffDirectory directory, PhotometricInterpreter photometricInterpreter, int bitsPerPixel, int[] bitsPerSample, int predictor, int samplesPerPixel, int width, int height, int compression, java.nio.ByteOrder byteOrder) throws java.io.IOException, ImageReadException
- Specified by:
getDataReader
in classTiffImageData
- Throws:
java.io.IOException
ImageReadException
-
getTileWidth
public int getTileWidth()
Get the width of individual tiles. Note that if the overall image width is not a multiple of the tile width, then the last column of tiles may extend beyond the image width.- Returns:
- an integer value greater than zero
-
getTileHeight
public int getTileHeight()
Get the height of individual tiles. Note that if the overall image height is not a multiple of the tile height, then the last row of tiles may extend beyond the image height.- Returns:
- an integer value greater than zero
-
-