Accessing Photo File

丶灬走出姿态 提交于 2019-12-13 02:05:07

问题


I use the standard TTakePhotoFromCameraAction in my application in order to take a photo.

What I would like to do, is when the user closes the application and then open it again, the last taken photo to be uploaded.

I know how to use SharedPreference in delphi, but I don't know what is the filename & path of the photo it self!

Any clues?


回答1:


The TTakePhotoFromCameraAction.OnDidFinishTaking event gives you a Bitmap of the taken photo. It is then your responsibility to save it where and how you need it. TTakePhotoFromCameraAction does not save it for you.




回答2:


There is a sample showing you how to do it coming with delphi samples:

C:\Users\Public\Documents\RAD Studio\12.0\Samples\FireMonkeyMobile\PhotoEditorDemo



来源:https://stackoverflow.com/questions/19099963/accessing-photo-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!