Image constructor
Image({})
Creates an image with the given dimensions and format.
Implementation
Image(
{required int width,
required int height,
int numChannels = 3,
bool withPalette = false,
Palette? palette,
ExifData? exif,
IccProfile? iccp,
this.textData,
this.loopCount = 0,
this.frameType = FrameType.sequence,
this.backgroundColor,
this.frameDuration = 0,
this.frameIndex = 0}) {
frames.add(this);
_initialize(width, height,
numChannels: numChannels,
withPalette: withPalette,
palette: palette,
exif: exif,
iccp: iccp);
}