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



Indicates whether or not to load corrupted files without throwing an exception.

Syntax

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

Property Value

true to load corrupted files, false to throw an exception if the file cannot be completely loaded successfully.

Example

For an example, refer to CodecsOptions.

Remarks

This mainly applies to JPEG compressed files that have corruption in the compressed data. If this property is set to True, then LEADTOOLS will load as much of the image data as possible, and will not throw an exception.

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