Open the image
Command Description
Open the specified image file and return the image operation object
Command Prototype
objImg = Picture.Open(sFile)
Command parameter
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
sFile | True | path | ''' C:\Users''' | The image file that needs to be processed has a file size of no more than 50M, and the file format only supports: BMP,PNG,GIF,JPEG,TIFF,WEBP,PCX,PPM |
Return result
ObjImg, Assign the result of running the command to this variable.
Run instance
/*********************************Open Picture****************************************
Command Prototype:
objImg = Picture.Open(sFile)
Input Parameters:
sFile -- Image path. Note: The image file to be processed. File size should not exceed 50M. Supported file formats: BMP, PNG, GIF, JPEG, TIFF, WEBP, PCX, PPM only.
Output Parameter:
objImg -- The variable where the output of the function call will be saved.
Notes:
None
********************************************************************************/
Dim objImg = ""
objImg = Picture.Open('''C:\Users''')
TracePrint(objImg)