2017-07-13 4 views

Répondre

0

Voici un exemple de code,

BitmapFactory.Options options = new BitmapFactory.Options(); 
options.inPreferredConfig = Bitmap.Config.ARGB_8888; 
Bitmap bitmap = BitmapFactory.decodeFile(photoPath, options); 
selected_photo.setImageBitmap(bitmap); 
+0

Visitez par exemple complet - [lien] (http://mihaifonoage.blogspot.com/2009/09/displaying-images-from-sd- card-in.html) –

+0

Comment puis-je obtenir le photopathe de l'image capturée d'une autre activité? – Nash

+0

Voici un exemple de code [link] (https://stackoverflow.com/questions/20327213/getting-path-of-captured-image-in-android-using-camera-intent) –