Tip
See the Remarks section of the ToWriteableBitmap method for more details.
public static Task<WriteableBitmap?> ToWriteableBitmapAsync(
this IReadableBitmapData source,
IQuantizer quantizer,
IDitherer ditherer = null,
TaskConfig asyncConfig = null
)<ExtensionAttribute>
Public Shared Function ToWriteableBitmapAsync (
source As IReadableBitmapData,
quantizer As IQuantizer,
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As TaskConfig = Nothing
) As Task(Of WriteableBitmap)public:
[ExtensionAttribute]
static Task<WriteableBitmap^>^ ToWriteableBitmapAsync(
IReadableBitmapData^ source,
IQuantizer^ quantizer,
IDitherer^ ditherer = nullptr,
TaskConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member ToWriteableBitmapAsync :
source : IReadableBitmapData *
quantizer : IQuantizer *
?ditherer : IDitherer *
?asyncConfig : TaskConfig
(* Defaults:
let _ditherer = defaultArg ditherer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> Task<WriteableBitmap> This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
| ArgumentNullException | source is . |
| COMException | Could not create the result WriteableBitmap on the current thread. Note that this method must be called on the UI thread. |