Image.rgb constructor

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

Create an image with the given dimensions and format.

Implementation

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