CodecRegistry class final

Registry of pure Dart image codecs.

Constructors

CodecRegistry(Iterable<ImageCodec> codecs)
Creates a codec registry.
CodecRegistry.defaultRegistry()
Default registry used by pipelines.
factory

Properties

capabilities DsharpCapabilities
Capability table aligned with this registry.
no setter
formats Iterable<ImageFormat>
Registered codec formats.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

codecFor(ImageFormat format) → ImageCodec
Returns the codec for format.
decode(Uint8List bytes, {ImageFormat? format}) PixelImage
Decodes bytes after sniffing the format when format is omitted.
decodeRaw(RawPixels pixels) PixelImage
Decodes raw pixels.
encode(PixelImage image, {required ImageFormat format, EncoderOptions? options}) EncodedImage
Encodes image as format.
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