Tip
See the Remarks section of the DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode) method for more details.
public static IAsyncResult BeginDrawInto(
this IReadableBitmapData source,
IReadWriteBitmapData target,
Rectangle sourceRectangle,
Rectangle targetRectangle,
IQuantizer? quantizer = null,
IDitherer? ditherer = null,
ScalingMode scalingMode = ScalingMode.Auto,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginDrawInto (
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 AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginDrawInto(
IReadableBitmapData^ source,
IReadWriteBitmapData^ target,
Rectangle sourceRectangle,
Rectangle targetRectangle,
IQuantizer^ quantizer = nullptr,
IDitherer^ ditherer = nullptr,
ScalingMode scalingMode = ScalingMode::Auto,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginDrawInto :
source : IReadableBitmapData *
target : IReadWriteBitmapData *
sourceRectangle : Rectangle *
targetRectangle : Rectangle *
?quantizer : IQuantizer *
?ditherer : IDitherer *
?scalingMode : ScalingMode *
?asyncConfig : AsyncConfig
(* Defaults:
let _quantizer = defaultArg quantizer null
let _ditherer = defaultArg ditherer null
let _scalingMode = defaultArg scalingMode ScalingMode.Auto
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the DrawIntoAsync(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, TaskConfig) method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndDrawInto method.
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. |