Wish [XUI] [B4X] B4XCanvas DrawLine method

Discussion in 'Bugs & wishlist' started by klaus, Oct 1, 2018.

  1. klaus

    klaus Expert Licensed User

    Hi Erel,

    The B4XCanvas DrawLine method doesn't behave the same in B4J like in B4A / B4i.
    Drawing a thick line starts at the start point and ends at the end point.

    upload_2018-10-1_16-7-50.png

    In B4J, the line is longer, I think you set the LineCap property to SQUARE by default and in B4A / B4i it's BUTT.

    upload_2018-10-1_16-8-2.png

    I would prefer having the same behavior for all three products.

    Below, the code for the lines, it draws a thick and a small line to show the difference:
    Code:
    cvsPanelBack.DrawLine(MarginLeft, BaseLineY, MarginRight, BaseLineY, xui.Color_Black, 8dip)
    cvsPanelBack.DrawLine(MarginLeft, BaseLineY, MarginRight, BaseLineY, xui.Color_Red, 
    1dip)
    Only the end point is shown in the pictures.

    Best regards.
    Klaus.
     
    Erel and Johan Hormaza like this.
  2. Erel

    Erel Administrator Staff Member Licensed User

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