←Select platform

GetFormatAsync Method

Summary

Gets the format of the image in a stream.

Syntax

C#
VB
Objective-C
WinRT C#
C++
public IAsyncOperation<RasterImageFormat> GetFormatAsync(  
   ILeadStream stream 
) 
Public Function GetFormatAsync( _ 
   ByVal stream As ILeadStream _ 
) As IAsyncOperation(Of RasterImageFormat) 
public IAsyncOperation<RasterImageFormat> GetFormatAsync(  
   ILeadStream stream 
) 
- (void)formatOfStreamAsync:(LTLeadStream *)stream  
                 completion:(void (^)(LTRasterImageFormat format, NSError * nullable error))completion 
             
 function Leadtools.Codecs.RasterCodecs.GetFormatAsync(  
   stream  
) 
public: 
IAsyncOperation<RasterImageFormat>^ GetFormatAsync(  
   ILeadStream^ stream 
)  

Parameters

stream
A ILeadStream containing the image data to query.

Return Value

The format of the image.

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly