This method changes the size of a raster image.
[Visual Basic]   [ Boolean = ]imagekitcontrolname.Effect.Resize(Width As Long, Height As Long, Mode As Boolean)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetEffect().Resize(long Width, long Height, BOOL Mode)
[VB.NET]   [ Boolean = ]imagekitcontrolname.Effect.Resize(Width As Integer, Height As Integer, Mode As Boolean)
[C#.NET]   [ bool = ]imagekitcontrolname.Effect.Resize(int Width, int Height, bool Mode)

Parameters

Name Explanation
Width The width of the new image (in pixels)
Height The height of the new image (in pixels)
Mode Sets whether Interpolation is used. (False (0): does not interpolate, True (nonzero): interpolates).

When enlarging the image, the linear interpolation method is used, when reducing the image, the average method is used. The interpolation can be used for 8 bit grayscale, 16, 24, and 32 bit images.

Return Value

Returns True (nonzero) if successful, otherwise returns False (0).

Explanation

The Resize method changes the size of the original image to the size specified. When the Mode parameter is false (No interpolation) then changes in size can adversely affect the quality of the Image.

To execute the Resize method, set the image handle of the image in the ImageHandle property or the Layer(LayerNo).ImageHandle property. The Resize method supports 1, 4, 8, 16, 24, and 32 bit color images. If using mask image, set the image handle into the MaskImageHandle property.

If successful the resulting raster image data is set in the LayerNo property (the ImageHandle property or the Layer(LayerNo).ImageHandle property). If the MaskImageHandle property contains a valid image handle, then the resulting mask image will be set in the MaskImageHandle property. If unsuccessful, 0 is returned.

When the Caption, Message, and ButtonName properties are blank, the progress dialog box will not be displayed. When the progress dialog box is displayed, the percentage that the processing has completed will be shown in the dialog box.

The ImageKit10 ActiveX is a product created by Newtone Corporation