LEADTOOLS Image File Support (Leadtools.Codecs assembly)

GetTotalPages(Stream) Method

Show in webframe







A System.IO.Stream containing the image data to query.
Gets the number of pages in a stream.
Syntax
public int GetTotalPages( 
   Stream stream
)
'Declaration
 
Public Overloads Function GetTotalPages( _
   ByVal stream As Stream _
) As Integer
'Usage
 
Dim instance As RasterCodecs
Dim stream As Stream
Dim value As Integer
 
value = instance.GetTotalPages(stream)
public int GetTotalPages( 
   Stream stream
)
-(unsigned int)getTotalPages:(LTLeadStream*)stream
                       error:(NSError**)outError;
            
public int getTotalPages(ILeadStream stream)
 function Leadtools.Codecs.RasterCodecs.GetTotalPages(Stream)( 
   stream 
)
public:
int GetTotalPages( 
   Stream^ stream
) 

Parameters

stream
A System.IO.Stream containing the image data to query.

Return Value

Number of pages in the specified stream.
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(Stream stream, 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.