Picture Zoom
Command Description
Scale the specified image file
Command Prototype
objImg = Picture.Resize(objImg, iWidth, iHeight)
Command parameter
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
objImg | True | expression | objImg | The image operation object returned by the "Open Image" command |
iWidth | True | number | one hundred | Specify the width of the image scaling (limited to positive integers between 0-10000) in pixels (px) |
iHeight | True | number | one hundred | Specify the height of image scaling (limited to positive integers between 0-10000) in pixels (px) |
Return result
ObjImg, Assign the result of running the command to this variable.
Run instance
/*********************************Image Resize****************************************
Command Prototype:
objImg = Picture.Resize(objImg, iWidth, iHeight)
Input Parameters:
objImg -- Picture operation object. Note: The picture operation object returned by the "Open Picture" command.
iWidth -- Width. Note: Specify the width for image scaling (limited to positive integers between 0-10000), in pixels (px).
iHeight -- Height. Note: Specify the height for image scaling (limited to positive integers between 0-10000), in pixels (px).
Output Parameter:
objImg -- The variable where the output of the function call will be saved.
Notes:
None
********************************************************************************/
Dim objImg = ""
objImg = Picture.Resize(objImg, 100, 100)
TracePrint(objImg)