LoadImageAnimFromMemory method

ImageD LoadImageAnimFromMemory(
  1. String fileType,
  2. Uint8List fileData
)

Load image sequence from memory buffer

Implementation

ImageD LoadImageAnimFromMemory(
  String fileType,
  Uint8List fileData,
) => run(
  () => _debugLabels.LoadImageAnimFromMemory(fileType, fileData),
  () {
    final frames = $.Int$.Ref1();
    final image = _flat.LoadImageAnimFromMemory(
      $.String$.ValueOrNull(fileType),
      $.UnsignedChar$.Array(fileData),
      fileData.length,
      frames,
    );
    image.frameCount = frames.value;
    return image;
  },
);