JpegEncoder class

Encode an image to the JPEG format.

Derived from: https://github.com/owencm/javascript-jpeg-encoder

Inheritance

Constructors

JpegEncoder({int quality = 100})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsAnimation bool
True if the encoder supports animated Images; otherwise false.
no setterinherited

Methods

encode(Image image, {JpegChroma chroma = JpegChroma.yuv444, bool singleFrame = false}) Uint8List
Encode an image to an image format. If singleFrame is true, only the one Image will be encoded; otherwise if image has animation, all frames of the image will be encoded if the encoder supports animation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setQuality(int quality) → void
toString() String
A string representation of this object.
inherited

Operators

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