Prototype
ImgResize(intImageHandle, intNewWidth, intNewHeight, intBackgroundColor)
Description
It resizes the current image, increasize or decreasing canvas width and height but not scaling the image content.
Parameters
intImageHandle: integer value corresponding to the image handle.
intNewWidth: integer value that specifies the new width in pixels.
intNewHeight: integer value that specifies the new height in pixels.
intBackgroundColor: integer value that specifies the color for new empty background in case of enlargment.
Returned value
None.
Notes
To resize image content also see ImgScale.
Example
//It resizes the image
ImgResize(_CurrentImage, 1000, 2000, 0);
//It shows a message
ApplicationLog(_CurrentAgent,'Image resized');