图像存储和元数据(8)(1 / 1)

加入书签 本章报错

Android多媒体开发高级编程强烈推荐:

camera应用程序已经返回

titleedittextgettexttostring;

publi9clickvie9v

superon9cestate;

importandroidgraທphicsBitmap;

3后期添加元数据在将图像捕获到mediaທstore中之后,如果希望将图像与更多的元数据关联,那么เ可以使用内容解析器的update方法。除了现在直接使用其uri访问图像文件之外,它与之ใ前所用的insert方法非常类似。

intenti=๡ne9aprovidermediastoreA9๗_ຕimAge_cA๥pture;

若宽度比率更大,则根据它缩放

intdh=๡9tdisplaygetheight;

imagevie9๗imv;

若高度比率更大,则根据它缩放

displaທy9do9managergetdefaultdisplay;

stringimagefilepath=environmentgetexternalstoragedirectory

finalstati9tcAmerA๥_result=0่;๙

}

h米h花h在h线h书h库hhttp:bookmihuaທnet

↑返回顶部↑

书页/目录

Android多媒体开发高级编程