访问从另一个类获取的图像
我有一个简单的概念问题。我有一个类,可以捕捉图片并将其显示在一个新的 java 类上:Result.java,它在 xml 文件中的基本 ImageView 上显示图像。
我假设相机将保存的图像存储在 SD 卡上。有没有办法让一个新的 Java 类访问拍摄的照片并做一些事情?我如何在我的应用程序的另一个类中调用该 bmp?
另外,当应用程序关闭时,是否有命令让我删除拍摄的照片?
谢谢!
I have a simple concept question. I have a class that snaps a picture and displays it on a new java class: Result.java that displays the image on a basic ImageView in an xml file.
I assume the camera stores the saved image on the SD card. Is there a way for a new Java class to access that photo that was taken and do stuff do it? How do I go about calling that bmp in another class in my app?
Also, when the app is closed, is there a command for me to delete that picture taken?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定它是一个文件..硬件相机正在将帧发送到软件缓冲区,这是由捕捉图片的类显示的转换后的位。
除非您保存了文件,否则我认为它不会保存在任何地方。
Not sure its a file..the hardware camera is sending a frame to the software buffer and that is the bits that get converted displayed by your class that snaps the picture.
Unless you have saved the file I do not think its saved anywhere..