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