public static IAsyncResult BeginToBitmap(
this IReadableBitmapData source,
PixelFormat pixelFormat,
IQuantizer quantizer = null,
IDitherer ditherer = null,
AsyncConfig asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginToBitmap (
source As IReadableBitmapData,
pixelFormat As PixelFormat,
Optional quantizer As IQuantizer = Nothing,
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginToBitmap(
IReadableBitmapData^ source,
PixelFormat pixelFormat,
IQuantizer^ quantizer = nullptr,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginToBitmap :
source : IReadableBitmapData *
pixelFormat : PixelFormat *
?quantizer : IQuantizer *
?ditherer : IDitherer *
?asyncConfig : AsyncConfig
(* Defaults:
let _quantizer = defaultArg quantizer null
let _ditherer = defaultArg ditherer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the ToBitmapAsync method.
To get the result or the exception that occurred during the operation you have to call the EndToBitmap method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
ArgumentNullException | source is . |
ArgumentOutOfRangeException | pixelFormat does not specify a valid format. |
PlatformNotSupportedException | The specified pixelFormat is not supported on the current platform. |