This method changes the size of a raster image.

[Visual Basic] Public Function Resize(xSize As Integer, ySize As Integer, mode As Boolean) As Boolean
[C#] public bool Resize(int xSize, int ySize, bool mode);

Parameters

xSize
   The width of the new image (in pixels)

ySize
   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 if successful. Returns False if unsuccessful.

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 Image property or the Layer(LayerNumber).Image 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 SourceMask property.

If the Resize method is successful and the DestinationAsImageKitImage property is True, the resulting image will be set in the Image property or in the Layer(LayerNumber).Image property, according to the value set in the LayerNumber property.

If the Resize method is successful and the DestinationAsImageKitImage property is False, the resulting image will be set in the DestinationImage property.

If the SourceMask property contains a valid image handle, then the resulting mask image will be set in the DesinationMask property.

See Also

ImageKit.Effect Members | Newtone.ImageKit.Win.ImageKit

The ImageKit.NET3 is created by Newtone Corporation