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