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