Tip
See the Remarks section of the DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode) method for more details.
public static Task DrawIntoAsync(
this IReadableBitmapData source,
IReadWriteBitmapData target,
Rectangle sourceRectangle,
Rectangle targetRectangle,
IQuantizer? quantizer = null,
IDitherer? ditherer = null,
ScalingMode scalingMode = ScalingMode.Auto,
TaskConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function DrawIntoAsync (
source As IReadableBitmapData,
target As IReadWriteBitmapData,
sourceRectangle As Rectangle,
targetRectangle As Rectangle,
Optional quantizer As IQuantizer = Nothing,
Optional ditherer As IDitherer = Nothing,
Optional scalingMode As ScalingMode = ScalingMode.Auto,
Optional asyncConfig As TaskConfig = Nothing
) As Task
public:
[ExtensionAttribute]
static Task^ DrawIntoAsync(
IReadableBitmapData^ source,
IReadWriteBitmapData^ target,
Rectangle sourceRectangle,
Rectangle targetRectangle,
IQuantizer^ quantizer = nullptr,
IDitherer^ ditherer = nullptr,
ScalingMode scalingMode = ScalingMode::Auto,
TaskConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member DrawIntoAsync :
source : IReadableBitmapData *
target : IReadWriteBitmapData *
sourceRectangle : Rectangle *
targetRectangle : Rectangle *
?quantizer : IQuantizer *
?ditherer : IDitherer *
?scalingMode : ScalingMode *
?asyncConfig : TaskConfig
(* Defaults:
let _quantizer = defaultArg quantizer null
let _ditherer = defaultArg ditherer null
let _scalingMode = defaultArg scalingMode ScalingMode.Auto
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 . |
ArgumentOutOfRangeException | scalingMode has an unsupported value. |