asmatullah
8 years agoContributor
Regions.AddPicture saves images at two locations
Hi ,
I am using Regions.AddPicture(scr_obj,scr_name,mouse,image_directory) to save the image to given output directory.
After executing this it saves the image at two location 1.Inside the Regions 2. In output directory.
Because of this behavior , reference images inside the Regions gets updated as the names are same (scripted).
Is there any way to avoid this . I want images to be saved in output directory.
Thanks in advance ...
Regions.AddPicture() always adds images to the Regions collection. To simply save an image to the disk, use pictureObj.SaveToFile(). For example:
// JScript/JavaScript Sys.Desktop.Picture().SaveToFile("C:\\images\\desktop.png");