2012-08-02 75 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(); 

來獲得圖像。