I am capturing part of the screen to save in the device and it saves it as the app name. Can I change this file name?
Thanks,
Warren
I am capturing part of the screen to save in the device and it saves it as the app name. Can I change this file name?
Thanks,
Warren
I think you need to pass the image object to display.save() to give it a name as it’s referenced in the contentBounds docs.
https://docs.coronalabs.com/api/library/display/captureBounds.html
Thanks but the Save does not let me save it to the device album like I want. If I pass True with CaptureBounds it does save to the devic e but cannot set the filename. It uses the app name.
What do you mean by display.save() doesn’t save like you want? If you pass the object you got with captureBounds to display.save(), it should do the trick. You can select where to save, change name and quality of the file. Isn’t that what you want?
@bgmadclown, there is no saveToAlbum option in the display.save() API, which is, I believe, the issue to which WarrenW is referring.
Oh, I see it now. Sorry, my bad.
I think you need to pass the image object to display.save() to give it a name as it’s referenced in the contentBounds docs.
https://docs.coronalabs.com/api/library/display/captureBounds.html
Thanks but the Save does not let me save it to the device album like I want. If I pass True with CaptureBounds it does save to the devic e but cannot set the filename. It uses the app name.
What do you mean by display.save() doesn’t save like you want? If you pass the object you got with captureBounds to display.save(), it should do the trick. You can select where to save, change name and quality of the file. Isn’t that what you want?
@bgmadclown, there is no saveToAlbum option in the display.save() API, which is, I believe, the issue to which WarrenW is referring.
Oh, I see it now. Sorry, my bad.