GifImage Constructor (GifFrameBlock, IColorPalette, Boolean, Byte, Byte, Byte, Boolean)
Initializes a new instance of the GifImage class.

Namespace: Aspose.Imaging.FileFormats.Gif
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntax
public GifImage(
	GifFrameBlock firstFrame,
	IColorPalette globalPalette,
	bool isPaletteSorted,
	byte paletteColorResolution,
	byte paletteBackgroundColorIndex,
	byte aspectRatio,
	bool hasTrailer
)

Parameters

firstFrame
Type: Aspose.Imaging.FileFormats.Gif.BlocksGifFrameBlock
The first frame to initialize gif image with.
globalPalette
Type: Aspose.ImagingIColorPalette
The global palette to use. Note if both firstFrame and globalPalette are null then default global palette is used.
isPaletteSorted
Type: SystemBoolean
if set to true the palette is sorted. Note the parameter is used when globalPalette is not null.
paletteColorResolution
Type: SystemByte
The palette color resolution. Note the parameter is used when globalPalette is not null.
paletteBackgroundColorIndex
Type: SystemByte
The palette background color index.
aspectRatio
Type: SystemByte
The aspect ratio.
hasTrailer
Type: SystemBoolean
if set to true the gif image has trailer otherwise no trailer written at the end of the stream.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe frame cannot be null;firstFrame
ArgumentExceptionThe first frame already belongs to some other image. Check the Container property.;firstFrame
GifImageExceptionThe palette specified should contain entries count equal to power of 2. Minimal palette size is 2, maximal is 256.
See Also