ExportImageToMemory method

(MemoryPointer<RUint8>, int) ExportImageToMemory(
  1. ImageD image,
  2. String fileType
)

Export image to memory buffer

Implementation

(MemoryPointer<RUint8> dataPtr, int dataSize) ExportImageToMemory(
  ImageD image,
  String fileType,
) => run(
  () => _debugLabels.ExportImageToMemory(image, fileType),
  () {
    final dataSize = $.Int$.Ref1();
    final dataPtr = _flat.ExportImageToMemory(
      image,
      $.String$.ValueOrNull(fileType),
      dataSize,
    );
    return (dataPtr, dataSize.value);
  },
);