LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)
LEAD Technologies, Inc

CreateThumbnail Method






The desired maximum width of the thumbnail image in pixels.
The desired maximum height of the thumbnail image in pixels.
Creates a thumbnail image of this IOcrPage. .NET support WinRT support
Syntax
RasterImage CreateThumbnail( 
   int thumbnailWidth,
   int thumbnailHeight
)
'Declaration
 
Function CreateThumbnail( _
   ByVal thumbnailWidth As Integer, _
   ByVal thumbnailHeight As Integer _
) As RasterImage
'Usage
 
Dim instance As IOcrPage
Dim thumbnailWidth As Integer
Dim thumbnailHeight As Integer
Dim value As RasterImage
 
value = instance.CreateThumbnail(thumbnailWidth, thumbnailHeight)
RasterImage CreateThumbnail( 
   int thumbnailWidth,
   int thumbnailHeight
)
function Leadtools.Forms.Ocr.IOcrPage.CreateThumbnail( 
   thumbnailWidth ,
   thumbnailHeight 
)
RasterImage^ CreateThumbnail( 
   int thumbnailWidth,
   int thumbnailHeight
) 

Parameters

thumbnailWidth
The desired maximum width of the thumbnail image in pixels.
thumbnailHeight
The desired maximum height of the thumbnail image in pixels.

Return Value

A Leadtools.RasterImage object that contains a thumbnail of this IOcrPage.
Remarks

The thumbnail image returned from this image always contain the correct aspect ratio. The width and height of the thumbnail is guaranteed to be at least thumbnailWidth by thumbnailHeight in size but never exceeding that. The only time you get a thumbnail that is exactly thumbnailWidth by thumbnailHeight pixels is when this IOcrPage is a perfect square.

The thumbnail image returned from this method will always contain 24 bits per pixel for best possible quality.

One use of the thumbnail image of a page is if your application is a Windows Forms-based application containing the Leadtools.WinForms.RasterImageList control. You can use CreateThumbnail to obtain thumbnails of the pages in the engine and use them as items to the Leadtools.WinForms.RasterImageList. For an example, refer to the C# or VB.NET Main OCR Demo that ships with LEADTOOLS.

Example
For an example, refer to IOcrPage.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IOcrPage Interface
IOcrPage Members
SetRasterImage Method
GetRasterImage
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with the LEADTOOLS .NET OCR

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

CreateThumbnail requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features