Error processing SSI file
LEADTOOLS Image File Support (Leadtools.Codecs assembly)

Show in webframe

GetFormatAsync Method








A ILeadStream containing the image data to query.
Gets the format of the image in a stream.
Syntax
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
) 

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

See Also

Reference

RasterCodecs Class
RasterCodecs Members

Error processing SSI file