rotate BMP, use Exit data. that's a;;

wheretheidivides

Active Member
Licensed User
Longtime User
I have a bitmap in a image view. It is fine. When I click on the image I want:
1) to see if it is portrait, if so, load same image into another view full screen.
2) if landscape, then rotate 90 degrees and show full screen.

That's it. I just want this image to go full screen and rotate if need be. 3 dats into this I still am searhing for info.

I can do every thing but the rotate. I have looked at all of the forem messages I can.

Basic4android - JpegUtils
has a whole section, but it doesn't explain anything. Could I just change the orientation and save it so when loaded it will be 90 degress off?
like
exif.setAttribute(exif.TAG_IMAGE_LENGTH, 100)
exif.saveAttributes

but no. This gives a null pointer exception

Also, on the exif list, all is listed is this;

TAG_ORIENTATION As String
Attribute is string.


That's it. SO I tried several settings and got these
PicOr = exif.getAttribute(exif.TAG_ORIENTATION)
' undefined=0, normal=1, flip horizontal=2, rotate=180=3, flip vertical=4
' transpose=5, roate 90=6, transverse=7, rorate 270=8

OK, now what. How do I change the orientation and save it so the next time it will display properly?
 
Last edited:

Mark Read

Well-Known Member
Licensed User
Longtime User
Hi there,

I use the RSImageProcessing Library

Here

Works well with Scrollview2D

Regards
 
Upvote 0
Top