GifCompressionMode Enumeration

KGy SOFT Drawing Libraries Help
Represents the compression behavior of the GifEncoder class.

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 6.0.0

public enum GifCompressionMode

  Member nameValueDescription
Auto0 Represents the automatic adaptive mode. The internally used code table might be regularly cleared.
DoNotClear1 Indicates that once the internally used code table is full, it is not maintained anymore and all remaining codes are written using 12 bit code size. If codes so far can be re-used, then the result can be more compact than with Auto mode; otherwise, the result can be even longer than in Uncompressed mode. This option might not be tolerated by some decoders.
DoNotIncreaseBitSize2 Indicates that all written codes must use the same bit size (3 to 9 bits, depending on palette size). It uses less memory but it may lead to poor compression, especially with palettes using no more than 4 colors.
Uncompressed3 Indicates that the GifEncoder should not use any compression. It uses the least memory but the result can be really long.
See Also