ExportImageToMemory method
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);
},
);