ArcGISImage constructor
Creates a new image object.
Parameters:
height
— The height of the image.width
— The width of the image.data
— The byte array containing the data for the image.
Implementation
factory ArcGISImage(
{required int height, required int width, required Uint8List data}) {
_initializeArcGISEnvironmentIfNeeded();
final coreData = data.toByteArrayWrapper();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Image_create(
height, width, coreData.ref, errorHandler);
});
return ArcGISImage._withHandle(handle);
}