LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

Passes Property (CodecsLoadOptions)






Gets or sets the number of passes (scans through the image) when loading a progressive image (JPEG mainly). .NET support WinRT support Silverlight support
Syntax
public int Passes {get; set;}
'Declaration
 
Public Property Passes As Integer
'Usage
 
Dim instance As CodecsLoadOptions
Dim value As Integer
 
instance.Passes = value
 
value = instance.Passes
public int Passes {get; set;}
 get_Passes();
set_Passes(value);
public:
property int Passes {
   int get();
   void set (    int value);
}

Property Value

The number of passes (scans through the image) when loading a progressive image.

Value Meaning
Any positive number. Load a progressive file showing at most the specified number of passes.
0 Load the file in one pass.
-1 Load a progressive file showing only significant scans.
-2 Load a progressive file showing all the scans.
Remarks

This value is also used when loading JBIG files to determine the number of resolutions to load to create a progressive load effect.

This property controls the number of times the RasterCodecs.LoadImage event can be called for a particular row. If you do not use the RasterCodecs.LoadImage event, this value is ignored.The RasterCodecs.LoadImage event can be used to implement a paint while load feature. For progressive files, the event is called several times for the same image row. The quality of the row is improved with every call. The improvements in some passes do not have visual improvements, so it is recommended you show only the significant scans (-1).

Example
For an example, refer to CodecsOptions.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CodecsLoadOptions Class
CodecsLoadOptions Members
Controlling Progressive Loads and Saves
Implementing JBIG Features
CodecsJpegSaveOptions.Passes

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.