ImageGear Professional for Windows ActiveX
GenerateThumbnail Method

Description:

Creates a resized copy of the original image. This new image will be NewWidth by NewHeight.

The ResizeMode parameter is used to determine how the new pixels are to be computed from the original one. ResizeMode = IG_INTERPOLATION_NONE specifies that no interpolation is to be used. In this case, only pixel values that occur in the original image will occur in the new image.

Syntax:

      GenerateThumbnail (ByVal dstPage As IGPage, ByVal srcPage As
IGPage, ByVal NewWidth As Long, ByVal NewHeight As Long, ByVal
ResizeMode As enumIGResizeModes)

Parameters:

Name Description
dstPage Reference to IGPage Object that stores the newly created thumbnail image.
srcPage Reference to IGPage Object that stores an image.
NewWidth Specifies width of the new image.
NewHeight Specifies height of the new image.
ResizeMode Specifies interpolation method to use for computing values of the pixels in the new image.

Return Value:

N/A

Bits Per Pixel:

1, 4, 8, 9-16-bit gray level, 24, 32

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback