TiffDecoder class Null safety

Inheritance

Constructors

TiffDecoder()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
info TiffInfo?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

decodeAnimation(List<int> data) Animation?
Decode all of the frames from an animation. If the file is not an animation, a single frame animation is returned. If there was a problem decoding the file, null is returned.
override
decodeFrame(int frame) Image?
Decode a single frame from the data stat was set with startDecode. If frame is out of the range of available frames, null is returned. Non animated image files will only have frame 0. An AnimationFrame is returned, which provides the image, and top-left coordinates of the image, as animated frames may only occupy a subset of the canvas.
override
decodeFrameHdr(int frame) HdrImage?
decodeHdrFrame(int frame) HdrImage?
Decode a single high dynamic range (HDR) frame from the data that was set with startDecode. If the format of the file does not support HDR images, the regular image will be converted to an HDR image as (color / 255). If frame is out of the range of available frames, null is returned. Non animated image files will only have frame 0. An Image is returned, which provides the image, and top-left coordinates of the image, as animated frames may only occupy a subset of the canvas.
inherited
decodeHdrImage(List<int> bytes, {int frame = 0}) HdrImage?
Decode the file and extract a single High Dynamic Range (HDR) image from it. HDR images are stored in floating-poing values. If the format of the file does not support HDR images, the regular image will be converted to an HDR image as (color / 255). If the file is animated, the specified frame will be decoded. If there was a problem decoding the file, null is returned.
override
decodeImage(List<int> bytes, {int frame = 0}) Image?
Decode the file and extract a single image from it. If the file is animated, the specified frame will be decoded. If there was a problem decoding the file, null is returned.
override
isValidFile(List<int> data) bool
Is the given file a valid TIFF image?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
numFrames() int
How many frames are available to be decoded. startDecode should have been called first. Non animated image files will have a single frame.
override
startDecode(List<int> bytes) TiffInfo?
Validate the file is a TIFF image and get information about it. If the file is not a valid TIFF image, null is returned.
override
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

TIFF_BIG_ENDIAN → const int
0x4d4d
TIFF_LITTLE_ENDIAN → const int
0x4949
TIFF_SIGNATURE → const int
42