Tip
See the Remarks section of the TransformColors(IReadWriteBitmapData, FuncColor32, Color32, IDitherer) method for more details.
public static IAsyncResult BeginTransformColors(
this IReadWriteBitmapData bitmapData,
Func<Color32, Color32> transformFunction,
IDitherer? ditherer = null,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginTransformColors (
bitmapData As IReadWriteBitmapData,
transformFunction As Func(Of Color32, Color32),
Optional ditherer As IDitherer = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginTransformColors(
IReadWriteBitmapData^ bitmapData,
Func<Color32, Color32>^ transformFunction,
IDitherer^ ditherer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginTransformColors :
bitmapData : IReadWriteBitmapData *
transformFunction : Func<Color32, Color32> *
?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 TransformColorsAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndTransformColors method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
ArgumentNullException | bitmapData or transformFunction is . |