ReadableBitmapDataExtensionsEndToBitmap Method
Waits for the pending asynchronous operation started by any of the
BeginToBitmap methods to complete.
In .NET Framework 4.0 and above you can use the
ToBitmapAsync methods instead.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 9.0.0
public static Bitmap? EndToBitmap(
this IAsyncResult asyncResult
)
<ExtensionAttribute>
Public Shared Function EndToBitmap (
asyncResult As IAsyncResult
) As Bitmap
public:
[ExtensionAttribute]
static Bitmap^ EndToBitmap(
IAsyncResult^ asyncResult
)
[<ExtensionAttribute>]
static member EndToBitmap :
asyncResult : IAsyncResult -> Bitmap
- asyncResult IAsyncResult
- The reference to the pending asynchronous request to finish.
BitmapA
Bitmap instance that is the result of the operation,
or
, if the operation was canceled and the
ThrowIfCanceled property of the
asyncConfig parameter was
.In Visual Basic and C#, you can call this method as an instance method on any object of type
IAsyncResult. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).