TiffImageAdapter class

Converts between TiffImage/TiffImageSpec and package:image's img.Image.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

enableJpegSupport() → void
Registers package:image's JPEG decoder as the codec used for Compression 6/7 (JPEG-in-TIFF) strips/tiles. Call this once before decoding a JPEG-compressed TIFF — without it, TiffImage.decode throws a clear error for those pages instead of silently failing.
toImage(TiffImage page) → Image
Converts a decoded TIFF page to an 8-bit RGBA image.Image, applying its PhotometricInterpretation (same color handling as TiffImage.decodeRgba8).
toTiffImageSpec(Image image, {bool keepAlpha = false, int compression = 1, int predictor = 1, int? rowsPerStrip, int? tileWidth, int? tileLength}) TiffImageSpec
Builds a TiffImageSpec for writing image out as an 8-bit TIFF page (RGB, or RGBA if keepAlpha is true and image has an alpha channel).