Skip to main content
Version: v6.5.0

Picture Zoom

Command Description

Scale the specified image file

Command Prototype

objImg = Picture.Resize(objImg, iWidth, iHeight)

Command parameter

parametermandatorytypedefault valueInstructions
objImgTrueexpressionobjImgThe image operation object returned by the "Open Image" command
iWidthTruenumberone hundredSpecify the width of the image scaling (limited to positive integers between 0-10000) in pixels (px)
iHeightTruenumberone hundredSpecify 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)