LEADTOOLS Image File Support (Leadtools.Codecs assembly)

GetTotalPages(Uri) Method

Show in webframe







The System.Uri containing the image data.
Gets the number of pages of an image URI.
Syntax
public int GetTotalPages( 
   Uri uri
)
'Declaration
 
Public Overloads Function GetTotalPages( _
   ByVal uri As Uri _
) As Integer
'Usage
 
Dim instance As RasterCodecs
Dim uri As Uri
Dim value As Integer
 
value = instance.GetTotalPages(uri)
public int GetTotalPages( 
   Uri uri
)

            

            
 function Leadtools.Codecs.RasterCodecs.GetTotalPages(Uri)( 
   uri 
)
public:
int GetTotalPages( 
   Uri^ uri
) 

Parameters

uri
The System.Uri containing the image data.

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(Uri uri, 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.