magickGetImageBlob method

Future<Uint8List?> magickGetImageBlob()

Implements direct to memory image formats. It returns the image as a blob (a formatted "file" in memory), starting from the current position in the image sequence. Use MagickSetImageFormat() to set the format to write to the blob (GIF, JPEG, PNG, etc.). Utilize magickResetIterator() to ensure the write is from the beginning of the image sequence.

This method runs inside an isolate different from the main isolate.

Implementation

Future<Uint8List?> magickGetImageBlob() async => await _magickCompute(
      _magickGetImageBlob,
      _wandPtr.address,
    );