访问从另一个类获取的图像

发布于 2024-10-02 08:15:28 字数 225 浏览 7 评论 0原文

我有一个简单的概念问题。我有一个类,可以捕捉图片并将其显示在一个新的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

红墙和绿瓦 2024-10-09 08:15:28

不确定它是一个文件..硬件相机正在将帧发送到软件缓冲区,这是由捕捉图片的类显示的转换后的位。

除非您保存了文件,否则我认为它不会保存在任何地方。

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..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文