Tip
See the Remarks section of the EncodeAnimation method for more details.
public static IAsyncResult BeginEncodeAnimation(
AnimatedGifConfiguration configuration,
Stream stream,
AsyncConfig? asyncConfig = null
)
Public Shared Function BeginEncodeAnimation (
configuration As AnimatedGifConfiguration,
stream As Stream,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
static IAsyncResult^ BeginEncodeAnimation(
AnimatedGifConfiguration^ configuration,
Stream^ stream,
AsyncConfig^ asyncConfig = nullptr
)
static member BeginEncodeAnimation :
configuration : AnimatedGifConfiguration *
stream : Stream *
?asyncConfig : AsyncConfig
(* Defaults:
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the EncodeAnimationAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndEncodeAnimation method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
ArgumentNullException | configuration or stream is . |
ArgumentException | configuration is invalid. |