PngAnimationMode Enum

Selects between static PNG and animated PNG (APNG) output.

public enum PngAnimationMode

Fields

NameValueDescription
Auto0Writes an APNG when the image is animated (Image.IsAnimated), and a static PNG otherwise.
Static1Writes a static PNG. Animated images (including single-frame images with animation settings or a poster frame) are rejected with an UnsupportedImageFeatureException; frames are never silently dropped.
Animated2Always writes an APNG, even for a single-frame still image.