PngDecoder class
Decode a PNG encoded image.
Constructors
Properties
Methods
-
decode(
Uint8List bytes, {int? frame}) → Image? -
Decode the file and extract a single image from it. If the file is
animated, and
frame
is specified, that particular frame will be decoded. Otherwise if the image is animated andframe
is null, the returned Image will include all frames. If there was a problem decoding the Image, null will be returned.override -
decodeFrame(
int frame) → Image? -
Decode the frame (assuming startDecode has already been called).
override
-
isValidFile(
Uint8List data) → bool -
Is the given file a valid PNG image?
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
numFrames(
) → int -
The number of frames that can be decoded.
override
-
startDecode(
Uint8List data) → DecodeInfo? -
Start decoding the data as an animation sequence, but don't actually
process the frames until they are requested with decodeFrame.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited