Tip
See the Remarks section of the Save method for more details.
public static IAsyncResult BeginSave(
this IReadableBitmapData bitmapData,
Stream stream,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginSave (
bitmapData As IReadableBitmapData,
stream As Stream,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginSave(
IReadableBitmapData^ bitmapData,
Stream^ stream,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginSave :
bitmapData : IReadableBitmapData *
stream : Stream *
?asyncConfig : AsyncConfig
(* Defaults:
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the SaveAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndSave method.
This method is not a blocking call, though the operation is not parallelized and the MaxDegreeOfParallelism property of the asyncConfig parameter is ignored.