LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

ReadExtensionsAsync Method






The input file data stream.
1-based index of the page within the file that contains the extension.
Loads extensions from the specified Exif stream. .NET support WinRT support
Syntax
public IAsyncOperation<CodecsExtensionList> ReadExtensionsAsync( 
   ILeadStream stream,
   int pageNumber
)
'Declaration
 
Public Function ReadExtensionsAsync( _
   ByVal stream As ILeadStream, _
   ByVal pageNumber As Integer _
) As IAsyncOperation(Of CodecsExtensionList)
'Usage
 
Dim instance As RasterCodecs
Dim stream As ILeadStream
Dim pageNumber As Integer
Dim value As IAsyncOperation(Of CodecsExtensionList)
 
value = instance.ReadExtensionsAsync(stream, pageNumber)
public IAsyncOperation<CodecsExtensionList> ReadExtensionsAsync( 
   ILeadStream stream,
   int pageNumber
)
 function Leadtools.Codecs.RasterCodecs.ReadExtensionsAsync( 
   stream ,
   pageNumber 
)
public:
IAsyncOperation<CodecsExtensionList^>^ ReadExtensionsAsync( 
   ILeadStream^ stream,
   int pageNumber
) 

Parameters

stream
The input file data stream.
pageNumber
1-based index of the page within the file that contains the extension.

Return Value

When this method completes, it returns an CodecsExtensionList object that contains the extensions found in this file.
Remarks

Please note that not all Exif files have extensions.

Currently, this method works only with Exif files. Exif files can contain extra data stored as "FlashPix extensions". This method can be used to access this extra data. Leadtools refers to this extra data as "extensions".

You must dispose the CodecsExtensionList returned from this method when you are done using it.

Example
For an example, refer to ReadExtensions(String,Int32).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Exif File Extensions

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.