爱佳小说网 > Android多媒体开发高级编程 > 图像存储和元数据(8)

图像存储和元数据(8)

cameraທ应用程序已经返回

titleedittextgettexttostring;๙

pubຘli9cນlickvie9v

superon9cestaທte;๙

importaທndroidgraphicsBitmap;

3后期添加元数据在将图像捕获到mediastore中之ใ后,如果希๶望将图像与更多的元数据关联,那ว么可以使用内容解析器的update方法。除了现在直接使用其uri访问图像文件之外,它与之前所用的insert方แ法非常类似。

intenti=ne9aທprovidermediastoreA9๗_imAge_ຕcApture;๙

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

intdh=9tdisplaygetheight;

imagevie9๗imv;

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

display9do9managergetdefaultdisplaທy;๙

stringimagefilepaທth=environmentgetexternalstoragedirectory

finalstaທti9tcAmerA_result=๡0่;๙

}

h米h花h在h线h书h库hhttp:๘bookmihuaທnet