Tip
See the Remarks section of the CopyTo(IReadableBitmapData, IWritableBitmapData, Rectangle, Point, IQuantizer, IDitherer) method for more details.
public static Task CopyToAsync(
this IReadableBitmapData source,
IWritableBitmapData target,
Rectangle? sourceRectangle = null,
Point? targetLocation = null,
IQuantizer? quantizer = null,
IDitherer? ditherer = null,
TaskConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function CopyToAsync (
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 TaskConfig = Nothing
) As Task
public:
[ExtensionAttribute]
static Task^ CopyToAsync(
IReadableBitmapData^ source,
IWritableBitmapData^ target,
Nullable<Rectangle> sourceRectangle = nullptr,
Nullable<Point> targetLocation = nullptr,
IQuantizer^ quantizer = nullptr,
IDitherer^ ditherer = nullptr,
TaskConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member CopyToAsync :
source : IReadableBitmapData *
target : IWritableBitmapData *
?sourceRectangle : Nullable<Rectangle> *
?targetLocation : Nullable<Point> *
?quantizer : IQuantizer *
?ditherer : IDitherer *
?asyncConfig : TaskConfig
(* 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
*)
-> Task
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
ArgumentNullException | source or target is . |