instantiateImageCodec function

Future<Codec> instantiateImageCodec (Uint8List list)

Instantiates an image codec Codec object.

list is the binary image data (e.g a PNG or GIF binary data). The data can be for either static or animated images.

The following image formats are supported: JPEG, PNG, GIF, Animated GIF, WebP, Animated WebP, BMP, and WBMP

The returned future can complete with an error if the image decoding has failed.

Implementation

Future<Codec> instantiateImageCodec(Uint8List list) {
  return _futurize(
    (_Callback<Codec> callback) => _instantiateImageCodec(list, callback)
  );
}