Android Question View image in imageview

RUNO

Active Member
Licensed User
Longtime User
When I selected an image from the gallery to display in ImageView, it doesn't appear as it did before; instead, it's rotated 90 degrees. anyone help
 

f0raster0

Well-Known Member
Licensed User
Longtime User
the img should be rotated before showing..

check this
 
Upvote 0

RUNO

Active Member
Licensed User
Longtime User
the img should be rotated before showing..

check this
I read it but didn't understand , can you tell me fixed it
 
Upvote 0

zed

Well-Known Member
Licensed User
When a photo is taken with a smartphone, the sensor always captures the image in the same physical orientation.
Then, the camera adds information like this to the EXIF metadata:

Orientation = 0°
Orientation = 90°
Orientation = 180°
Orientation = 270°

Many image viewers (Gallery, Google Photos, etc.) automatically read this EXIF orientation and display the image correctly.

But B4A doesn't automatically correct the EXIF orientation when you load a bitmap.
The result: you see the "raw" image, without rotation, so it's often rotated 90°.

 
Upvote 0
Top