Tip
See the Remarks section of the Dither method for more details.
public static Task DitherAsync(
this IReadWriteBitmapData bitmapData,
IQuantizer quantizer,
IDitherer ditherer,
TaskConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function DitherAsync (
bitmapData As IReadWriteBitmapData,
quantizer As IQuantizer,
ditherer As IDitherer,
Optional asyncConfig As TaskConfig = Nothing
) As Task
public:
[ExtensionAttribute]
static Task^ DitherAsync(
IReadWriteBitmapData^ bitmapData,
IQuantizer^ quantizer,
IDitherer^ ditherer,
TaskConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member DitherAsync :
bitmapData : IReadWriteBitmapData *
quantizer : IQuantizer *
ditherer : IDitherer *
?asyncConfig : TaskConfig
(* Defaults:
let _asyncConfig = defaultArg asyncConfig null
*)
-> Task
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
ArgumentNullException | bitmapData, quantizer or ditherer is . |
InvalidOperationException | The IQuantizer.Initialize method or the IDitherer.Initialize method returned . |