MapImage.withImageDataImageFormatWidthAndHeight constructor

MapImage.withImageDataImageFormatWidthAndHeight(
  1. Uint8List imageData,
  2. ImageFormat imageFormat,
  3. int width,
  4. int height,
)

Creates a new map image from the provided image data.

  • imageData Data 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

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

  • width The width of the image in pixels.

  • height The height of the image in pixels.

Implementation

factory MapImage.withImageDataImageFormatWidthAndHeight(Uint8List imageData, ImageFormat imageFormat, int width, int height) => $prototype.withImageDataImageFormatWidthAndHeight(imageData, imageFormat, width, height);