AnimatedGifConfigurationAllowDeltaFrames Property

Gets or sets whether it is allowed to encode only the changed region of a frame. In some circumstances the value of this property might be ignored.
Default value: .

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.0.0
C#
public bool AllowDeltaFrames { get; set; }

Property Value

Boolean
If , then the required memory during encoding may be larger but it allows creating more compact files and even high color frames (see also the Remarks section).
If , then all frames will be encoded individually. This provides lower memory consumption but may produce larger files.

Remarks

If Quantizer is set to an OptimizedPaletteQuantizer that allows creating a specific palette for each frame, then setting this property to might also allow producing high color frames.

If AllowClippedFrames is , then this property is ignored for quantizers with no transparency support. Therefore, make sure that you set also the AllowClippedFrames to if you use a quantizer without transparency support.

  Note

The difference to be encoded is always determined by the original images. If you use an OptimizedPaletteQuantizer, then it can occur that the first frame has a poorer mapping of the original colors than the delta images, which can cause a "ghosting image" effect (the traces of the changes can be seen in the animation). It can be avoided by using a fix palette instead. To minimize it by using an OptimizedPaletteQuantizer it is recommended to use the MedianCut quantizer.

See Also