public static IAsyncResult BeginClone(
this IReadableBitmapData source,
Rectangle sourceRectangle,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginClone (
source As IReadableBitmapData,
sourceRectangle As Rectangle,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginClone(
IReadableBitmapData^ source,
Rectangle sourceRectangle,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginClone :
source : IReadableBitmapData *
sourceRectangle : Rectangle *
?asyncConfig : AsyncConfig
(* Defaults:
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the CloneAsync(IReadableBitmapData, Rectangle, TaskConfig) method.
To get the result or the exception that occurred during the operation you have to call the EndClone method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
ArgumentNullException | source is . |
ArgumentOutOfRangeException | sourceRectangle has no overlapping region with source bounds. |