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



Gets a value that determines whether this RasterImage object is still loading. Supported in Silverlight, Windows Phone 7

Syntax

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

Property Value

true if this RasterImage object is still loading, otherwise; false.

Example

Remarks

The Leadtools.Codecs.RasterCodecs class supports loading image files asynchronously using the RasterCodecs.LoadAsync methods. When calling any of these methods, the caller thread will not be blocked and the method will return instantly with an instance RasterImage that is in a loading status (RasterImage.IsLoading set to true). You should not use the other properties of this object while the object is in loading status.

When the Leadtools.Codecs.RasterCodecs object finishes loading the image, the various properties of the RasterImage will be populated with the image information and data and the RasterImage.IsLoading property will be set to false.

It is recommended that you do not poll for the RasterImage.IsLoading property to check when the image is finished loaded, instead, subscribe to the RasterCodecs.LoadAsyncCompleted event to get notification on when the Leadtools.Codecs.RasterCodecs.LoadAsync(System.String,Leadtools.LeadRect,System.Int32,Leadtools.Codecs.CodecsLoadByteOrder,System.Int32,System.Int32,System.Object) operation is completed and if any errors occurred.

The RasterCodecs.LoadAsyncCompleted event data will also contain the same object returned from RasterCodecs.LoadAsync so you do not have to keep the original object in your application.

Requirements

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

See Also