ImageExtensionsSaveAsAnimatedGif(IEnumerableImage, String, NullableTimeSpan, IQuantizer, IDitherer) Method
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
public static void SaveAsAnimatedGif(
this IEnumerable<Image> frames,
string fileName,
TimeSpan? delay = null,
IQuantizer? quantizer = null,
IDitherer? ditherer = null
)
<ExtensionAttribute>
Public Shared Sub SaveAsAnimatedGif (
frames As IEnumerable(Of Image),
fileName As String,
Optional delay As TimeSpan? = Nothing,
Optional quantizer As IQuantizer = Nothing,
Optional ditherer As IDitherer = Nothing
)
public:
[ExtensionAttribute]
static void SaveAsAnimatedGif(
IEnumerable<Image^>^ frames,
String^ fileName,
Nullable<TimeSpan> delay = nullptr,
IQuantizer^ quantizer = nullptr,
IDitherer^ ditherer = nullptr
)
[<ExtensionAttribute>]
static member SaveAsAnimatedGif :
frames : IEnumerable<Image> *
fileName : string *
?delay : Nullable<TimeSpan> *
?quantizer : IQuantizer *
?ditherer : IDitherer
(* Defaults:
let _delay = defaultArg delay null
let _quantizer = defaultArg quantizer null
let _ditherer = defaultArg ditherer null
*)
-> unit
- frames IEnumerableImage
- The frames to save into the GIF data stream.
- fileName String
- The name of the file to which to save the frames. The directory of the specified path is created if it does not exist.
- delay NullableTimeSpan (Optional)
- An optional TimeSpan to specify the delay for all frames. If ,
then a default 100 ms delay will be used. This parameter is optional.
Default value: . - quantizer IQuantizer (Optional)
- An optional quantizer to be used for the frames. If , then
for frames with a non-indexed pixel format a quantizer returned by the OptimizedPaletteQuantizer.Wu method will be used. This parameter is optional.
Default value: . - ditherer IDitherer (Optional)
- An optional ditherer to be used when quantizing the frames. This parameter is optional.
Default value: .
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).