getBuffer method
Returns image data in RGBA.
The byte array that is returned cannot be used after the ArcGISImage has been destroyed. The memory is deleted.
Return Value: The image data. An empty byte array if an error occurs.
Implementation
Uint8List getBuffer() {
final byteArray = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Image_getBuffer(_handle, errorHandler);
});
return byteArray.toDartList();
}