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) 
     If true, 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 SourceImage 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 successful the resulting raster image data is set in the DestinationImage property. If the SourceMask property contains a valid image handle, then the resulting mask image will be set in the DestinationMask property.

See Also

Effect Class | Effect Members

The ImageKit.NET3 is created by Newtone Corporation