Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
LoadStatus Property
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class : LoadStatus Property



Gets a value that allows the detection of whether the image was loaded with errors.

Syntax

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

Return Value

A RasterException which indicates the result of the most recent load operation.

The most common return values are:

ValueMeaning
RasterExceptionType.SuccessThe image loaded by the last load call does not have any errors.
RasterExceptionType.CompressedDataFailureThere were errors decoding the last image. The bottom part of the image might be corrupted.
RasterExceptionType.BadResyncMarkerSome of the resync markers were incorrect or missing while decoding the last image. Resync markers are used by JPEG files to recover from decoding errors. Portions of the image are corrupted. They are indicated by a checkerboard pattern.
RasterExceptionType.FileReadThe file was truncated. The bottom part of the image is missing.

Remarks

An error return code is a warning that portions of the image that was last loaded might be corrupted.

This property should be called after a load method has been sucessfully called. This value is reset after each page is loaded, so if you are loading multiple pages, this error code is valid only for the last page.

If the last load method threw an exception, then this method should not be used, as its return value is undefined.

Note that this property is valid for the current thread. So it should be used in the same thread as the load method.

This is valid for all the methods that will load an image, including RasterCodecs.Load and FeedLoad.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also