Forum Discussion

asmatullah's avatar
asmatullah
Contributor
8 years ago

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 Regio...
  • HKosova's avatar
    8 years ago

    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");