Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
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;}
Managed Extensions for C++ 
public: __property bool get_LoadCorrupted();
public: __property void set_LoadCorrupted( 
   bool value
);
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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also