1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question [Solved] Rotated B4XCanvas

Discussion in 'Android Questions' started by Cebuvi, May 7, 2019.

  1. Cebuvi

    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.
     
  2. klaus

    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.
     
    Erel and José J. Aguilar like this.
  3. Cebuvi

    Cebuvi Active Member Licensed User

    Thank you Klaus for such a quick response. I will prove it
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice