B4J Question rotate canvas

ilan

Expert
Licensed User
Longtime User
hi

is it possible to rotate a canvas? i am drawing stuff on it and i would like to rotate everything.
how can i do it?

thanx

if found this: http://www.dreamincode.net/forums/topic/303313-how-to-rotate-canvas-rect/

is this possible with b4j? do i have to save it as a bmp and then draw with drawbitmaprotated? or can i rotate the canvas (translate) it directly.
 
Last edited:

ilan

Expert
Licensed User
Longtime User
Hi,

you can use JavaObject:

B4X:
Dim jo As JavaObject = Canvas1
     jo.RunMethod("setRotate", Array(180.0)) 'rotates the canvas 180 degrees

Jan

works great, thanx @JanPRO.
 
Upvote 0
Top