MImgSetSize

Functions ››
Parent Previous Next

bOk = MImgSetSize( hImage, nNewWidth, nNewHeight, nOverflowColor, nOverflowOpacity )

Resizes an image.

Parameters
hImage
Number: Handle of the image

nNewWidth
Number: The new width

nNewHeight
Number: The new height

nOverflowColor
Number: The color for the overflow area ( if any )

nOverflowOpacity
Number: The opacity for the overflow area ( if any )

Return
Number: TRUE if successful or FALSE if an error occurs

Example
In this example an image is resized to 32 * 32 using white as overflow color and 255 as overflow opacity:

Set bOk = MImgSetSize( hImage, 32, 32, COLOR_White, 255 )

See also
MImgGetSize
MImgResample

Created with the Personal Edition of HelpNDoc: Create iPhone web-based documentation