Android Question [Solved] Rotated B4XCanvas

Cebuvi

Active Member
Licensed User
Hi,

After drawing a figure in a B4XCanvas, is it possible to rotate the entire canvas at a certain angle?

Thanks.
 

klaus

Expert
Licensed User
Yes.
B4XCanvas is initialized to a B4XView, to a Panel (B4A and B4i) or to a Pane (B4J).
You can rotate the B4XView at a given angle, with B4XView1.Rotation = Angle.
I use this in the B4X xGauges Class.
 
Top