public IAsyncOperation<int> GetTotalPagesAsync(
ILeadStream stream
)
Public Function GetTotalPagesAsync( _
ByVal stream As ILeadStream _
) As IAsyncOperation(Of Integer)
- (void)totalPagesInStreamAsync:(LTLeadStream *)stream
completion:(void (^)(NSInteger totalPages, NSError * __nullable error))completion
public:
IAsyncOperation<int>^ GetTotalPagesAsync(
ILeadStream^ stream
)
stream
A ILeadStream containing the image data to query.
Number of pages in the specified stream.
NOTE: This topic is part of RasterCodecs
Async support using the .NET System.ComponentMode.AsyncOperation
model. For .NET async/await
,
use Task<CodecsImageInfo> GetInformationAsync(ILeadStream stream, bool totalPages).
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.
For an example, refer to Load(Stream stream, int pageNumber).
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document