Android Question Rotate a certain image contained in a folder from code

Matteo Granatiero

Active Member
Licensed User
Longtime User
I would like to rotate a certain image "jeans.jpg" contained in a certain folder, 90 degrees directly from the code, therefore without loading it on an ImageView or other.
 

Matteo Granatiero

Active Member
Licensed User
Longtime User
B4X:
Dim b As Bitmap = LoadBitmap(...).Rotate(90)
Dim out As OutputStream = File.OpenOutput(...)
b.WriteToStream(...)
out.Close

Consider using LoadBitmapResize instead of LoadBitmap if the image files can be large.
the code not reponse
 
Upvote 0
Top