Tip
See the Remarks section of the DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Point, IQuantizer, IDitherer) method for more details.
public static IAsyncResult BeginDrawInto(
this IReadableBitmapData source,
IReadWriteBitmapData target,
Rectangle? sourceRectangle = null,
Point? targetLocation = null,
IQuantizer? quantizer = null,
IDitherer? ditherer = null,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginDrawInto (
source As IReadableBitmapData,
target As IReadWriteBitmapData,
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^ BeginDrawInto(
IReadableBitmapData^ source,
IReadWriteBitmapData^ target,
Nullable<Rectangle> sourceRectangle = nullptr,
Nullable<Point> targetLocation = nullptr,
IQuantizer^ quantizer = nullptr,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginDrawInto :
source : IReadableBitmapData *
target : IReadWriteBitmapData *
?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 DrawIntoAsync(IReadableBitmapData, IReadWriteBitmapData, NullableRectangle, NullablePoint, IQuantizer, IDitherer, 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 . |