2012-08-02 72 views
0

我有这种情况。 该应用程序允许我拍摄一些东西的照片并将其保存到一个sqlite数据库。 现在,这个应用程序从相机设备捕获图像并将其显示在ImageView上。 问题是如何从ImageView中获取此图像并将其解析为字节数组如何在ImageView上显示图像

+0

参考此链接 [字节阵列图像(http://stackoverflow.com/questions/5212531/android-byte-to-image-in-camera-onpreviewframe) 或该 [存储图像] (http://stackoverflow.com/questions/11684737/storing-images-in-drawable-folder-and-getting-the-image-to-load-by-using-the-ima) – Numair 2012-08-02 16:54:24

回答

1

你看过API了吗?

它只是

Drawable image = imageview.getDrawable(); 

来获得图像。