0
嗨,我有這段代碼,我該如何將圖像轉換成位圖?我正在從圖庫訪問圖片。如何將圖像轉換爲位圖
_GaleryButton.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v) {
// TODO Auto-generated method stub
Intent intent=new Intent();
intent.setAction(Intent.ACTION_PICK);
intent.setData(android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
startActivity(intent);
}
});
}
protected void onGActivityResult(int GrequestCode, int GresultCode, Intent Gdata){
super.onActivityResult(GrequestCode,GresultCode,Gdata);
Uri uriimg = Gdata.getData();
}