MapImage.withPixelDataAndImageFormat constructor
- Uint8List pixelData,
- ImageFormat imageFormat
Creates a new map image from the provided image data.
Currently only ImageFormat.png is accepted.
-
pixelDataData to be used for the image. The bytes of a PNG image datastream are expected as defined in https://www.w3.org/TR/PNG -
imageFormatThe format of the image data to be used.
Implementation
factory MapImage.withPixelDataAndImageFormat(Uint8List pixelData, ImageFormat imageFormat) => $prototype.withPixelDataAndImageFormat(pixelData, imageFormat);