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