MapImage.withPixelDataAndImageFormat constructor

MapImage.withPixelDataAndImageFormat(
  1. Uint8List pixelData,
  2. ImageFormat imageFormat
)

Creates a new map image from the provided image data.

Currently only ImageFormat.png is accepted.

  • pixelData Data to be used for the image. The bytes of a PNG image datastream are expected as defined in https://www.w3.org/TR/PNG

  • imageFormat The format of the image data to be used.

Implementation

factory MapImage.withPixelDataAndImageFormat(Uint8List pixelData, ImageFormat imageFormat) => $prototype.withPixelDataAndImageFormat(pixelData, imageFormat);