Error processing SSI file
LEADTOOLS Image File Support (Leadtools.Codecs assembly)

Show in webframe

ReadLoadResolutionsAsync(ILeadStream,Int32) Method








A ILeadStream containing the data of the image file to query.
An Int32 that indicates the page number.
Examines a stream to determine which resolutions it contains.
Syntax
public IAsyncOperation<IVector<LeadSize>> ReadLoadResolutionsAsync( 
   ILeadStream stream,
   int pageNumber
)
'Declaration
 
Public Overloads Function ReadLoadResolutionsAsync( _
   ByVal stream As ILeadStream, _
   ByVal pageNumber As Integer _
) As IAsyncOperation(Of IVector(Of LeadSize))
'Usage
 
Dim instance As RasterCodecs
Dim stream As ILeadStream
Dim pageNumber As Integer
Dim value As IAsyncOperation(Of IVector(Of LeadSize))
 
value = instance.ReadLoadResolutionsAsync(stream, pageNumber)
public IAsyncOperation<IVector<LeadSize>> ReadLoadResolutionsAsync( 
   ILeadStream stream,
   int pageNumber
)
 function Leadtools.Codecs.RasterCodecs.ReadLoadResolutionsAsync(ILeadStream,Int32)( 
   stream ,
   pageNumber 
)
public:
IAsyncOperation<IVector<LeadSize>^>^ ReadLoadResolutionsAsync( 
   ILeadStream^ stream,
   int pageNumber
) 

Parameters

stream
A ILeadStream containing the data of the image file to query.
pageNumber
An Int32 that indicates the page number.

Return Value

When this method completes, it returns the available resolutions as an array of LeadSize structures.
Remarks

A FlashPix, PhotoCD, ECW, JPEG 2000 or JBIG/JBIG2 file can contain more than one copy of the same image, each at a different physical resolution (width and height in pixels).

The pages numbers start with 1, so set pageNumber to 2 to read the resolutions from the second page. If you set pageNumber to 1, the function behaves like the equivalent function without the pageNumber parameter.

After you get the available resolutions, you can use any of the following to specify the one to be loaded:

For more information, refer to Implementing JBIG Features.

Example
For an example, refer to ReadLoadResolutions.
Requirements

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Overload List

Error processing SSI file