Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.8.30
|
Leadtools.Codecs Namespace > RasterCodecs Class : GetFormatAsync Method |
public IAsyncOperation<RasterImageFormat> GetFormatAsync( ILeadStream stream )
'Declaration
Public Function GetFormatAsync( _ ByVal stream As ILeadStream _ ) As IAsyncOperation(Of RasterImageFormat)
'Usage
Dim instance As RasterCodecs Dim stream As ILeadStream Dim value As IAsyncOperation(Of RasterImageFormat) value = instance.GetFormatAsync(stream)
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 )
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).