loadImageAnim function

Image loadImageAnim(
  1. String fileName
)

Load image sequence from file (frames appended to image.data).

Implementation

Image loadImageAnim(String fileName) {
  final frames = malloc<Int32>(sizeOf<Int32>());
  // TODO(wolfen): how to handle out params?

  return Image.fromRef(
    library.LoadImageAnim(
      string.toNative(fileName),
      frames,
    ),
  );
}