Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RestartFrequency Property
See Also 
Leadtools.Twain Namespace > TwainJpegCompression Structure : RestartFrequency Property



Gets or sets the number of minimum data units between restart markers. The default value is 0, indicating that no restart markers are used. This property is updated by calling the GetJpegCompression method. To set the JPEG Compression options, set this property and the other TwainJpegCompression properties and call the TwainSession.SetJpegCompression method.

Syntax

Visual Basic (Declaration) 
Public Property RestartFrequency As Integer
Visual Basic (Usage)Copy Code
Dim instance As TwainJpegCompression
Dim value As Integer
 
instance.RestartFrequency = value
 
value = instance.RestartFrequency
C# 
public int RestartFrequency {get; set;}
C++/CLI 
public:
property int RestartFrequency {
   int get();
   void set (int value);
}

Return Value

The number of minimum data units between restart markers. The default value is 0, indicating that no restart markers are used.

Example

Remarks

For more information, refer to Using JPEG Compression For A TWAIN Source. For more information about TW_JPEGCOMPRESSION, refer to the TWAIN 2.0 specification from the site http://www.twain.org/.

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