MapImage.withImageDataImageFormatWidthAndHeight constructor
- Uint8List imageData,
- ImageFormat imageFormat,
- int width,
- int height,
Creates a new map image from the provided image data.
-
imageDataData to be used for the image. For image format ImageFormat.svg the bytes of a UTF-8 encoded string in SVG Tiny format are expected. For the format specification see https://www.w3.org/TR/SVGTiny12 -
imageFormatThe format of the image data to be used. -
widthThe width of the image in pixels. -
heightThe height of the image in pixels.
Implementation
factory MapImage.withImageDataImageFormatWidthAndHeight(Uint8List imageData, ImageFormat imageFormat, int width, int height) => $prototype.withImageDataImageFormatWidthAndHeight(imageData, imageFormat, width, height);