Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
ReadExtensions(Stream,Int32) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > ReadExtensions Method : ReadExtensions(Stream,Int32) Method




stream
The input file data stream.
pageNumber
1-based index of the page within the file that contains the extension.
Loads extensions from the specified Exif stream.

Syntax

Visual Basic (Declaration) 
Overloads Public Function ReadExtensions( _
   ByVal stream As Stream, _
   ByVal pageNumber As Integer _
) As CodecsExtensionList
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim stream As Stream
Dim pageNumber As Integer
Dim value As CodecsExtensionList
 
value = instance.ReadExtensions(stream, pageNumber)
C# 
public CodecsExtensionList ReadExtensions( 
   Stream stream,
   int pageNumber
)
Managed Extensions for C++ 
public: CodecsExtensionList* ReadExtensions( 
   Stream* stream,
   int pageNumber
) 
C++/CLI 
public:
CodecsExtensionList^ ReadExtensions( 
   Stream^ 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

An CodecsExtensionList object that contains the extensions found in this file.

Example

For an example, refer to ReadExtensions.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also