MImgResample
bOk = MImgResample( hImage, nNewWidth, nNewHeight, nMode )
Resamples an image to a new size.
Parameters
hImage
Number: Handle of the image
nNewWidth
Number: The new width
nNewHeight
Number: The new height
nMode
Number: The resample mode. Specify one of the following constants:
MIMG_RESAMPLE_NC |
Nearest color. Good for the most images. |
MIMG_RESAMPLE_BIC |
Bicubic interpolation |
MIMG_RESAMPLE_BIL |
Bilinear interpolation |
Return
Number: TRUE if successful or FALSE if an error occurs
Example
In this example an image is resampled to a size of 32 * 32 using the mode "Nearest color":
Set bOk = MImgResample( hImage, 32, 32, MIMG_RESAMPLE_NC )
See also
MImgSetSize
Created with the Personal Edition of HelpNDoc: Create HTML Help, DOC, PDF and print manuals from 1 single source