LEADTOOLS Image File Support (Leadtools.Codecs assembly)

ReadThumbnailAsync Method

Show in webframe







A Leadtools.ILeadStream containing the image data from which the thumbnail image will be created.
Options for creating the thumbnail image.
1-based index of the page from which the thumbnail image should be created.
Creates a thumbnail from the specified image stream.
Syntax
public IAsyncOperation<RasterImage> ReadThumbnailAsync( 
   ILeadStream stream,
   CodecsThumbnailOptions options,
   int pageNumber
)
'Declaration
 
Public Function ReadThumbnailAsync( _
   ByVal stream As ILeadStream, _
   ByVal options As CodecsThumbnailOptions, _
   ByVal pageNumber As Integer _
) As IAsyncOperation(Of RasterImage)
'Usage
 
Dim instance As RasterCodecs
Dim stream As ILeadStream
Dim options As CodecsThumbnailOptions
Dim pageNumber As Integer
Dim value As IAsyncOperation(Of RasterImage)
 
value = instance.ReadThumbnailAsync(stream, options, pageNumber)
public IAsyncOperation<RasterImage> ReadThumbnailAsync( 
   ILeadStream stream,
   CodecsThumbnailOptions options,
   int pageNumber
)

            

            
 function Leadtools.Codecs.RasterCodecs.ReadThumbnailAsync( 
   stream ,
   options ,
   pageNumber 
)
public:
IAsyncOperation<RasterImage^>^ ReadThumbnailAsync( 
   ILeadStream^ stream,
   CodecsThumbnailOptions options,
   int pageNumber
) 

Parameters

stream
A Leadtools.ILeadStream containing the image data from which the thumbnail image will be created.
options
Options for creating the thumbnail image.
pageNumber
1-based index of the page from which the thumbnail image should be created.

Return Value

The Leadtools.RasterImage object that this method creates.When this method completes, it returns the Leadtools.RasterImage object that this method creates.
Remarks
This method will always return a thumbnail image. Depending on the options passed, this method might read the stamp stored inside EXIF, CMP, JFIF and FlashPix files and return that. To read the file stamp only, use ReadStamp(String,Int32).
Example
For an example, refer to ReadThumbnail.
Requirements

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Thumbnail Browser

 

 


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