Tip
See the Remarks section of the ConvertPixelFormat(Image, PixelFormat, IQuantizer, IDitherer) method for more details and image examples.
public static IAsyncResult BeginConvertPixelFormat(
this Image image,
PixelFormat newPixelFormat,
IQuantizer? quantizer,
IDitherer? ditherer = null,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginConvertPixelFormat (
image As Image,
newPixelFormat As PixelFormat,
quantizer As IQuantizer,
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginConvertPixelFormat(
Image^ image,
PixelFormat newPixelFormat,
IQuantizer^ quantizer,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginConvertPixelFormat :
image : Image *
newPixelFormat : PixelFormat *
quantizer : IQuantizer *
?ditherer : IDitherer *
?asyncConfig : AsyncConfig
(* Defaults:
let _ditherer = defaultArg ditherer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the ConvertPixelFormatAsync(Image, PixelFormat, IQuantizer, IDitherer, TaskConfig) method.
To get the result or the exception that occurred during the operation you have to call the EndConvertPixelFormat method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.