From camera to imageView

TrisectDevelopment

Active Member
Licensed User
Longtime User
I have made an app that take a photo with the camera and displays it iun an imageview.

The camera part works okay and the images get saved as a JPG file.
BUT when I try to load the saved image into my imageview something is not working.

I see only a part of the picture saved(taken)...

I read something on this forum about using a canvas but I cannot figure out what it is I'm supposed to do.

Can anyone provide me with some code examples on how to do it or help me in another way??

Thanks in advance!
 

Inman

Well-Known Member
Licensed User
Longtime User
Instead of setting the bitmap with Imageview.Bitmap=, try using Imageview.background=bd. Of course first you need to Dim bd as BitmapDrawable and then bd.Initialize with the JPG you took from camera. Then only set Imageview.background=bd
 
Upvote 0
Top