Error processing SSI file
LEADTOOLS Image File Support (Leadtools.Codecs assembly)

Show in webframe

GetTotalPagesAsync Method








A ILeadStream containing the image data to query.
Gets the number of pages in a stream.
Syntax
public IAsyncOperation<int> GetTotalPagesAsync( 
   ILeadStream stream
)
'Declaration
 
Public Function GetTotalPagesAsync( _
   ByVal stream As ILeadStream _
) As IAsyncOperation(Of Integer)
'Usage
 
Dim instance As RasterCodecs
Dim stream As ILeadStream
Dim value As IAsyncOperation(Of Integer)
 
value = instance.GetTotalPagesAsync(stream)
public IAsyncOperation<int> GetTotalPagesAsync( 
   ILeadStream stream
)
- (void)totalPagesInStreamAsync:(LTLeadStream *)stream 
                     completion:(void (^)(NSInteger totalPages, NSError * __nullable error))completion
            
 function Leadtools.Codecs.RasterCodecs.GetTotalPagesAsync( 
   stream 
)
public:
IAsyncOperation<int>^ GetTotalPagesAsync( 
   ILeadStream^ stream
) 

Parameters

stream
A ILeadStream containing the image data to query.

Return Value

Number of pages in the specified stream.
Remarks

GetInformationAsync and GetFormatAsync use GetInformationAsync internally. So, if more information about the image is required, it is recommended to call GetInformationAsync 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

Error processing SSI file