BitmapDataExtensionsEndGetColors Method

Waits for the pending asynchronous operation started by the BeginGetColors method to complete. In .NET Framework 4.0 and above you can use the GetColorsAsync method instead.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0
C#
public static ICollection<Color32> EndGetColors(
	this IAsyncResult asyncResult
)

Parameters

asyncResult  IAsyncResult
The reference to the pending asynchronous request to finish.

Return Value

ICollectionColor32
An ICollectionT of Color32 entries that is the result of the operation. If the operation was canceled and the ThrowIfCanceledproperty of the asyncConfig parameter was , then an empty collection is returned.

Usage Note

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).

See Also