←Select platform

ReadThumbnailAsync Method

Summary

Creates a thumbnail from the specified image stream.

Syntax

C#
VB
WinRT C#
C++
public IAsyncOperation<RasterImage> ReadThumbnailAsync(  
   ILeadStream stream, 
   Leadtools.Codecs.CodecsThumbnailOptions options, 
   int pageNumber 
) 
Public Function ReadThumbnailAsync( _ 
   ByVal stream As ILeadStream, _ 
   ByVal options As Leadtools.Codecs.CodecsThumbnailOptions, _ 
   ByVal pageNumber As Integer _ 
) As IAsyncOperation(Of RasterImage) 
public IAsyncOperation<RasterImage> ReadThumbnailAsync(  
   ILeadStream stream, 
   Leadtools.Codecs.CodecsThumbnailOptions options, 
   int pageNumber 
) 
 function Leadtools.Codecs.RasterCodecs.ReadThumbnailAsync(  
   stream , 
   options , 
   pageNumber  
) 
public: 
IAsyncOperation<RasterImage^>^ ReadThumbnailAsync(  
   ILeadStream^ stream, 
   Leadtools.Codecs.CodecsThumbnailOptions options, 
   int pageNumber 
)  

Parameters

stream
A 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 RasterImage object that this method creates.When this method completes, it returns the 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.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly