LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Image Property
See Also 
Leadtools.Codecs Namespace > CodecsLoadAsyncCompletedEventArgs Class : Image Property



Gets the Leadtools.RasterImage class instance that is being loaded.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Image As RasterImage
Visual Basic (Usage)Copy Code
Dim instance As CodecsLoadAsyncCompletedEventArgs
Dim value As RasterImage
 
value = instance.Image
C# 
public RasterImage Image {get;}
C++/CLI 
public:
property RasterImage^ Image {
   RasterImage^ get();
}

Property Value

A Leadtools.RasterImage object that is being loaded, or a null reference (Nothing in Visual Basic) if an error occured.

Example

For an example, refer to RasterCodecs.LoadAsyncCompleted.

Remarks

This instance is the same object returned from the RasterCodecs.LoadAsync method. While the asynchronous operation is running, the value of the RasterImage.IsLoading will be true indicating that the object is being populated with the image data and should not be used. Whe the asynchronous operation compelets, the RasterCodecs.LoadAsyncCompleted event will fire and Image will contain the final and ready to use object. If an error occurs, this property will be set to null and the object is disposed internally by the toolkit.

When an error occur, either the Error property is not a null reference or the Cancelled property is true.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also