LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetInformation(Stream,Boolean,Int32) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > GetInformation Method : GetInformation(Stream,Boolean,Int32) Method



stream
System.IO.Stream containing the input image data.
totalPages
true to query the file for total number of pages, false otherwise.
pageNumber
Page number in the file to query.
stream
System.IO.Stream containing the input image data.
totalPages
true to query the file for total number of pages, false otherwise.
pageNumber
Page number in the file to query.
Gets the specific image page information from a stream.

Syntax

Visual Basic (Declaration) 
Overloads Public Function GetInformation( _
   ByVal stream As Stream, _
   ByVal totalPages As Boolean, _
   ByVal pageNumber As Integer _
) As CodecsImageInfo
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim stream As Stream
Dim totalPages As Boolean
Dim pageNumber As Integer
Dim value As CodecsImageInfo
 
value = instance.GetInformation(stream, totalPages, pageNumber)
C# 
public CodecsImageInfo GetInformation( 
   Stream stream,
   bool totalPages,
   int pageNumber
)
C++/CLI 
public:
CodecsImageInfo^ GetInformation( 
   Stream^ stream,
   bool totalPages,
   int pageNumber
) 

Parameters

stream
System.IO.Stream containing the input image data.
totalPages
true to query the file for total number of pages, false otherwise.
pageNumber
Page number in the file to query.

Return Value

A CodecsImageInfo object that contains the information about the specified image.

Example

For an example, refer to GetInformation(Stream,Boolean).

Remarks

Specifying true for totalPages can cause the process to be slow for files with large number of pages.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also