public static IAsyncResult BeginCombine(
this IReadableBitmapData source1,
IReadableBitmapData source2,
IWritableBitmapData target,
Func<Color32, Color32, Color32> combineFunction,
Point? source1Location = null,
Point? source2Location = null,
Point? targetLocation = null,
Size? size = null,
IDitherer? ditherer = null,
AsyncConfig? asyncConfig = null
)<ExtensionAttribute>
Public Shared Function BeginCombine (
source1 As IReadableBitmapData,
source2 As IReadableBitmapData,
target As IWritableBitmapData,
combineFunction As Func(Of Color32, Color32, Color32),
Optional source1Location As Point? = Nothing,
Optional source2Location As Point? = Nothing,
Optional targetLocation As Point? = Nothing,
Optional size As Size? = Nothing,
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResultpublic:
[ExtensionAttribute]
static IAsyncResult^ BeginCombine(
IReadableBitmapData^ source1,
IReadableBitmapData^ source2,
IWritableBitmapData^ target,
Func<Color32, Color32, Color32>^ combineFunction,
Nullable<Point> source1Location = nullptr,
Nullable<Point> source2Location = nullptr,
Nullable<Point> targetLocation = nullptr,
Nullable<Size> size = nullptr,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member BeginCombine :
source1 : IReadableBitmapData *
source2 : IReadableBitmapData *
target : IWritableBitmapData *
combineFunction : Func<Color32, Color32, Color32> *
?source1Location : Nullable<Point> *
?source2Location : Nullable<Point> *
?targetLocation : Nullable<Point> *
?size : Nullable<Size> *
?ditherer : IDitherer *
?asyncConfig : AsyncConfig
(* Defaults:
let _source1Location = defaultArg source1Location null
let _source2Location = defaultArg source2Location null
let _targetLocation = defaultArg targetLocation null
let _size = defaultArg size null
let _ditherer = defaultArg ditherer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult In .NET Framework 4.0 and above you can use also the CombineAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndCombine method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
The combined area is automatically clipped if size is larger than the dimensions of the smallest bitmap or the available sizes using the specified locations.
If target can represent a narrower set of colors, then the result will be automatically quantized to the colors of the target. To use dithering a ditherer must be explicitly specified. The ditherer is ignored for KnownPixelFormats with more than 16 bits-per-pixel and for grayscale formats.
| ArgumentNullException | source1,source2, target or combineFunction is . |