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 )
function Leadtools.Codecs.RasterCodecs.GetFormatAsync( stream )
public: IAsyncOperation<RasterImageFormat>^ GetFormatAsync( ILeadStream^ stream )
GetInformationAsync(String,Boolean,Int32,Object) and GetFormatAsync use GetInformationAsync(String,Boolean,Int32,Object) internally. So, if more information about the image is required, it is recommended to call GetInformationAsync(String,Boolean,Int32,Object) directly and obtain the data once.
For an example, refer to Load(Stream stream, int pageNumber).