Tip
See the Remarks section of the MakeGrayscale method for more details.
public static IAsyncResult BeginMakeGrayscale(
this IReadWriteBitmapData bitmapData,
IDitherer? ditherer = null,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginMakeGrayscale (
bitmapData As IReadWriteBitmapData,
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginMakeGrayscale(
IReadWriteBitmapData^ bitmapData,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginMakeGrayscale :
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 MakeGrayscaleAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndMakeGrayscale method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.