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



Gets and sets the number of passes when saving progressive JPEG and LEAD CMP images.

Syntax

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

Return Value

The number of passes (scans through the image) when saving a progressive JPEG or LEAD CMP file.

Example

For an example, refer to CodecsJpegOptions.

Remarks

The value can be one of the following:
ValueMeaning
Any positive number > 1.Save the file as a progressive file with the specified number of passes.
1Save a regular file with optimized Huffman tables. Use this for smaller file size (at the expense of speed).
0Save the file as an ordinary JPEG or LEAD CMP file (not a progressive file).
Any negative number.Save the file as a progressive file with the LEADTOOLS default number of passes.

.Passes

Requirements

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

See Also