TiffImageSpec class

Everything needed to write one TIFF/BigTIFF page.

Mirrors what TiffImage/TiffRasterBuffer expose on the decode side: a single uniform BitsPerSample across channels, chunky (interleaved) sample order, and — if tileWidth/tileLength are both set — tiled rather than strip layout.

Constructors

TiffImageSpec({required int width, required int height, required int samplesPerPixel, required int bitsPerSample, required TiffPhotometric photometric, required List<int> samples, int compression = 1, int predictor = 1, List<int>? colorMap, int? rowsPerStrip, int? tileWidth, int? tileLength})

Properties

bitsPerSample int
final
colorMap List<int>?
Required when photometric is TiffPhotometric.palette: three 2^bitsPerSample-entry lookup tables (R, then G, then B), 16-bit each.
final
compression int
Compression tag value (1=None, 5=LZW, 8/32946=Deflate, 32773=PackBits).
final
hashCode int
The hash code for this object.
no setterinherited
height int
final
isTiled bool
no setter
photometric TiffPhotometric
final
predictor int
Predictor tag value: 1=None, 2=horizontal differencing (8/16-bit only).
final
rowsPerStrip int?
Strip layout when null; ignored if tileWidth/tileLength are set.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
samples List<int>
Raw samples, row-major, interleaved: length must be width * height * samplesPerPixel.
final
samplesPerPixel int
final
tileLength int?
final
tileWidth int?
final
width int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited