B4J Question Draw image 180 Degrees

ElliotHC

Active Member
Licensed User
I am using MainForm.RootPane.AddNode to animate images moving as part of a game, it's working really well but I need to have a player 2 which will be working effectively upside down at the top of the screen as if the display was like table soccer.

I can run everything again going up instead of down but I need to be able to also flip those images so they look the right way up for the player at the other end of the table.

Does anyone know how that might be done using the above?

Thanks
 

jimmyF

Active Member
Licensed User
Longtime User
B4X:
Private mBmp As B4XBitmap

mBmp.Rotate(-180)
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
It does with the png files that I use and create.
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
Try this:
B4X:
mBmp = mBmp.Rotate(-180)
 
Upvote 0
Top