Skip to main content
Version: v6.5.0

Pictures saving

Command Description

Save the processed image file and return the save path of the image file

Command Prototype

sRet = Picture.Save(objImg, sPath)

Command parameter

parametermandatorytypedefault valueInstructions
objImgTrueexpressionobjImgThe image operation object returned by the "Open Image" command
sPathTruepath''' C:\Users'''Save the processed image in the specified folder path, and the file format only supports: BMP,PNG,GIF,JPEG,TIFF,WEBP,PCX,PPM

Return result

SRet, Assign the result of running the command to this variable.

Run instance

/*********************************Save Picture****************************************
Command Prototype:
sRet = Picture.Save(objImg, sPath)
Input Parameters:
objImg -- Picture operation object. Note: The picture operation object returned by the "Open Picture" command.
sPath -- File path. Note: Save the processed image to the specified folder path. Supported file formats: BMP, PNG, GIF, JPEG, TIFF, WEBP, PCX, PPM only.
Output Parameter:
sRet -- The variable where the output of the function call will be saved.
Notes:
None
********************************************************************************/
Dim sRet = ""
sRet = Picture.Save(objImg, '''C:\Users''')
TracePrint(sRet)