public static void AssertAnimationSupport(IImageCoder coder, ImagingConfig config) { if (coder == null) { throw new ArgumentNullException(nameof(coder)); } AssertAnimationSupport(coder.Format, config); if (coder is not IAnimatedFormatAttribute) { throw new AnimationNotImplementedException(coder); } }
public AnimationNotImplementedException( string message, Exception inner, IImageCoder coder) : base(message, inner, coder?.Format) { Coder = coder ?? throw new ArgumentNullException(nameof(coder)); }
public AnimationNotImplementedException(IImageCoder coder) : base(coder?.Format) { Coder = coder ?? throw new ArgumentNullException(nameof(coder)); }