LEADTOOLS Image File Support (Leadtools.Codecs assembly)

GetInformation(Stream,Boolean,Int32) Method

Show in webframe







System.IO.Stream containing the input image data.
true to query the file for total number of pages; false, otherwise.
Page number in the file to query.
Gets the specific image page information from a stream.
Syntax
public CodecsImageInfo GetInformation( 
   Stream stream,
   bool totalPages,
   int pageNumber
)
'Declaration
 
Public Overloads Function GetInformation( _
   ByVal stream As Stream, _
   ByVal totalPages As Boolean, _
   ByVal pageNumber As Integer _
) As CodecsImageInfo
'Usage
 
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)
public CodecsImageInfo GetInformation( 
   Stream stream,
   bool totalPages,
   int pageNumber
)
-(LTCodecsImageInfo*)getInformation:(LTLeadStream*)stream
                         totalPages:(BOOL)totalPages 
                         pageNumber:(int)pageNumber 
                              error:(NSError**)outError;
            
public CodecsImageInfo getInformation(ILeadStream stream, boolean totalPages, int pageNumber)
 function Leadtools.Codecs.RasterCodecs.GetInformation(Stream,Boolean,Int32)( 
   stream ,
   totalPages ,
   pageNumber 
)
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.
Remarks

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

To quickly query the number of an image, use GetTotalPages(String) or GetTotalPagesAsync.

To quickly query the format of an image, use GetFormat(String) or GetFormatAsync.

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

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Overload List
Loading and Saving Large Tiff Files
Speeding Up 1-Bit Documents
Fast File Info

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.