Image.rgb constructor

Image.rgb(
  1. int width,
  2. int height, {
  3. ExifData? exif,
  4. ICCProfileData? iccp,
})

Create an image with the given dimensions and format.

Implementation

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