←Select platform

Passes Property

Summary

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

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public int Passes { get; set; } 
Public Property Passes As Integer 
public int Passes {get; set;} 
@property (nonatomic, assign) NSInteger passes 
public int getPasses() 
public void setPasses(int value) 
             
 <br/>get_Passes();<br/>set_Passes(value);<br/>Object.defineProperty('Passes');  
public: 
property int Passes { 
   int get(); 
   void set (    int ); 
} 

Property Value

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

Value Meaning
> 1 Save the file as a progressive file with the specified number of passes.
1 Save a regular JPEG file with dynamically optimized Huffman tables (ie the Huffman tables are optimized for the image you are saving).
Use this for smaller file size (at the expense of speed).
0 Save a regular JPEG file with static Huffman tables (ie the Huffman tables are the same for all images).
< 0 Save the file as a progressive file with the LEADTOOLS default number of passes.
Example

For an example, refer to CodecsJpegOptions.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly