fromImage static method

Future<ArcGISImage> fromImage(
  1. Image image
)

Converts a ui.Image to an ArcGISImage.

Implementation

static Future<ArcGISImage> fromImage(ui.Image image) async {
  final byteData = await image.toByteData(format: ui.ImageByteFormat.png);
  return fromByteData(byteData!);
}