←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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

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