Tip
See the Remarks section of the ToTransparent(IReadableBitmapData, Color32) method for more details.
public static IAsyncResult BeginToTransparent(
this IReadableBitmapData bitmapData,
Color32 transparentColor,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginToTransparent (
bitmapData As IReadableBitmapData,
transparentColor As Color32,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginToTransparent(
IReadableBitmapData^ bitmapData,
Color32 transparentColor,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginToTransparent :
bitmapData : IReadableBitmapData *
transparentColor : Color32 *
?asyncConfig : AsyncConfig
(* Defaults:
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the ToTransparentAsync(IReadableBitmapData, Color32, TaskConfig) method.
To get the result or the exception that occurred during the operation you have to call the EndToTransparent method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.