What am I missing??
Here is my code
This is how it looks when viewed with Photos.
And this is how it looks when loaded into an image view. Notice I have reversed Height and width on some of these.
I have tried changing the gravity and reversing the height and width in any number of combinations to no avail.
here are the specs on the picture.
It appears that the issue is with all pictures taken in portrait mode. Pictures taken in landscape mode load ok.
Here is my code
B4X:
II.SetLayout(0, 0, PH, PW)
II.Gravity = Gravity.FILL
II.Bitmap = LoadBitmapResize(Dir, FileName, PW, PH, True)
P.AddView(II, 0, 0, PW, PH)
This is how it looks when viewed with Photos.
And this is how it looks when loaded into an image view. Notice I have reversed Height and width on some of these.
I have tried changing the gravity and reversing the height and width in any number of combinations to no avail.
here are the specs on the picture.
It appears that the issue is with all pictures taken in portrait mode. Pictures taken in landscape mode load ok.