[英]can MediaStore.Images.Media.getBitmap(); be use in normal java class?
i am creating an app to get Uri of an image and do some processing on the image on Java class. 我正在创建一个应用程序以获取图像的Uri并在Java类上对该图像进行一些处理。 once i got the URi, i will pass it to a java class to get the image into bitmap and process it.
一旦获得URi,我会将其传递给java类,以将图像转换为位图并进行处理。 my question is,
我的问题是
can MediaStore.Images.Media.getBitmap(); 可以MediaStore.Images.Media.getBitmap(); be use in normal java class?
在普通的Java类中使用?
if cant, is there other way to convert my Uri into Bitmap? 如果不能,还有其他方法可以将Uri转换为位图吗?
cuz from wat i know passing bitmap around will cause out of memory error. 来自wat的cuz,我知道传递位图会导致内存不足错误。
是的,您可以在使用Android应用程序时使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.