LEADTOOLS Image File Support (Leadtools.Codecs assembly)

GetTotalPages(String) Method

Show in webframe







A System.String containing the name of the image file to query.
Gets the number of pages in a disk file image.
Syntax
public int GetTotalPages( 
   string fileName
)
'Declaration
 
Public Overloads Function GetTotalPages( _
   ByVal fileName As String _
) As Integer
'Usage
 
Dim instance As RasterCodecs
Dim fileName As String
Dim value As Integer
 
value = instance.GetTotalPages(fileName)
public int GetTotalPages( 
   string fileName
)

            

            
 function Leadtools.Codecs.RasterCodecs.GetTotalPages(String)( 
   fileName 
)
public:
int GetTotalPages( 
   String^ fileName
) 

Parameters

fileName
A System.String containing the name of the image file to query.

Return Value

Number of pages in the specified file.
Remarks

GetInformation(String,Boolean) and GetFormat(String) use GetInformation(String,Boolean) internally. So, if more information about the image is required, it is recommended to call GetInformation(String,Boolean) directly and obtain the data once.

Example

For an example, refer to Load(string fileName, int pageNumber).

Requirements

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.