←Select platform

GetFormatAsync Method

Summary
Gets the format of the image in a stream.
Syntax
Objective-C
- (void)formatOfStreamAsync:(LTLeadStream *)stream  
                 completion:(void (^)(LTRasterImageFormat format, NSError * __nullable error))completion 

Parameters

stream
An 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.

Requirements

Target Platforms

Help Version 22.0.2023.5.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.