Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.9
|
Leadtools.Forms.Ocr Assembly > Leadtools.Forms.Ocr Namespace > IOcrPage Interface : CreateThumbnail Method |
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 )
- (nullable LTRasterImage *)createThumbnailWithWidth:(NSUInteger)thumbnailWidth height:(NSUInteger)thumbnailHeight error:(NSError **)error
public RasterImage createThumbnail(int thumbnailWidth, int thumbnailHeight)
function Leadtools.Forms.Ocr.IOcrPage.CreateThumbnail( thumbnailWidth , thumbnailHeight )
RasterImage^ CreateThumbnail( int thumbnailWidth, int thumbnailHeight )
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 ImageViewer control. You can use CreateThumbnail to obtain thumbnails of the pages in the engine and use them as items to the ImageViewer. For an example, refer to the C# or VB.NET Main OCR Demo that ships with LEADTOOLS.