Tip
See the Remarks section of the CopyTo(IReadableBitmapData, IWritableBitmapData, Rectangle, Point, IQuantizer, IDitherer) method for more details.
public static IAsyncResult BeginCopyTo(
this IReadableBitmapData source,
IWritableBitmapData target,
Rectangle? sourceRectangle = null,
Point? targetLocation = null,
IQuantizer? quantizer = null,
IDitherer? ditherer = null,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginCopyTo (
source As IReadableBitmapData,
target As IWritableBitmapData,
Optional sourceRectangle As Rectangle? = Nothing,
Optional targetLocation As Point? = Nothing,
Optional quantizer As IQuantizer = Nothing,
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginCopyTo(
IReadableBitmapData^ source,
IWritableBitmapData^ target,
Nullable<Rectangle> sourceRectangle = nullptr,
Nullable<Point> targetLocation = nullptr,
IQuantizer^ quantizer = nullptr,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginCopyTo :
source : IReadableBitmapData *
target : IWritableBitmapData *
?sourceRectangle : Nullable<Rectangle> *
?targetLocation : Nullable<Point> *
?quantizer : IQuantizer *
?ditherer : IDitherer *
?asyncConfig : AsyncConfig
(* Defaults:
let _sourceRectangle = defaultArg sourceRectangle null
let _targetLocation = defaultArg targetLocation null
let _quantizer = defaultArg quantizer null
let _ditherer = defaultArg ditherer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the CopyToAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndCopyTo method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
ArgumentNullException | source or target is . |