Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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);
}

Return 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: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also