Image constructor
Image(
- {required int width,
- required int height,
- Format format = Format.uint8,
- int numChannels = 3,
- bool withPalette = false,
- Format paletteFormat = Format.uint8,
- Palette? palette,
- ExifData? exif,
- IccProfile? iccp,
- Map<
String, String> ? textData, - int loopCount = 0,
- FrameType frameType = FrameType.sequence,
- Color? backgroundColor,
- int frameDuration = 0,
- int frameIndex = 0}
Creates an image with the given dimensions and format.
Implementation
Image(
{required int width,
required int height,
Format format = Format.uint8,
int numChannels = 3,
bool withPalette = false,
Format paletteFormat = Format.uint8,
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,
format: format,
numChannels: numChannels,
withPalette: withPalette,
paletteFormat: paletteFormat,
palette: palette,
exif: exif,
iccp: iccp);
}