Tip
See the Remarks section of the Invert method for more details.
public static IAsyncResult BeginInvert(
this IReadWriteBitmapData bitmapData,
IDitherer? ditherer = null,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginInvert (
bitmapData As IReadWriteBitmapData,
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginInvert(
IReadWriteBitmapData^ bitmapData,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginInvert :
bitmapData : IReadWriteBitmapData *
?ditherer : IDitherer *
?asyncConfig : AsyncConfig
(* Defaults:
let _ditherer = defaultArg ditherer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the InvertAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndInvert method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.