ilan Expert Licensed User Longtime User Jul 27, 2016 #1 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: Jul 27, 2016
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.
JanPRO Well-Known Member Licensed User Longtime User Jul 27, 2016 #2 Hi, you can use JavaObject: B4X: Dim jo As JavaObject = Canvas1 jo.RunMethod("setRotate", Array(180.0)) 'rotates the canvas 180 degrees Jan Upvote 0
Hi, you can use JavaObject: B4X: Dim jo As JavaObject = Canvas1 jo.RunMethod("setRotate", Array(180.0)) 'rotates the canvas 180 degrees Jan
ilan Expert Licensed User Longtime User Jul 27, 2016 #3 JanPRO said: Hi, you can use JavaObject: B4X: Dim jo As JavaObject = Canvas1 jo.RunMethod("setRotate", Array(180.0)) 'rotates the canvas 180 degrees Jan Click to expand... works great, thanx @JanPRO. Upvote 0
JanPRO said: Hi, you can use JavaObject: B4X: Dim jo As JavaObject = Canvas1 jo.RunMethod("setRotate", Array(180.0)) 'rotates the canvas 180 degrees Jan Click to expand... works great, thanx @JanPRO.