←Select platform

GetTotalPages(Uri) Method

Summary
Gets the number of pages of an image URI.
Syntax
C#
VB
C++
public int GetTotalPages( 
   Uri uri 
) 
Public Overloads Function GetTotalPages( _ 
   ByVal uri As Uri _ 
) As Integer 
public: 
int GetTotalPages(  
   Uri^ uri 
)  

Parameters

uri
The Uri containing the image data.

Return Value

Number of pages in the specified file.

Remarks

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

Example

For an example, refer to Load(Uri uri, int pageNumber).

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.