Image constructor

Image(
  1. int width,
  2. int height, {
  3. Channels channels = Channels.rgba,
  4. ExifData? exif,
  5. ICCProfileData? iccp,
  6. Map<String, String>? textData,
})

Create an image with the given dimensions and format.

Implementation

Image(this.width, this.height,
    {this.channels = Channels.rgba, ExifData? exif, ICCProfileData? iccp,
     this.textData})
    : data = Uint32List(width * height),
      exif = ExifData.from(exif),
      iccProfile = iccp;