Android Question BitmapCreator Shape

Discussion in 'Android Questions' started by Mike1970, May 13, 2019.

  1. Mike1970

    Mike1970 Active Member Licensed User

    It's possible to draw something like this with BitmapCreator? (the blue part)

    Senza titolo-1.jpg
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]

    Code:
    Sub Activity_Create(FirstTime As Boolean)
       
    Activity.LoadLayout("1")
       
    Dim bc As BitmapCreator
       bc.Initialize(ImageView1.Width, ImageView1.Height)
       
    Dim path As BCPath
       
    path.Initialize(0, bc.mHeight)
       
    path.LineTo(065%y)
       AddBezier(
    path35%x50%y50%x85%y100%x85%y30)
       
    path.LineTo(100%x100%y)
       bc.DrawPath(
    path0xFF008EFFTrue0)
       bc.DrawLine(
    0100%y100%x100%y0xFF008EFF1dip)
       bc.SetBitmapToImageView(bc.Bitmap, ImageView1)
    End Sub
     

    Attached Files:

    • 1.zip
      File size:
      9.3 KB
      Views:
      47
    asales, Sagenut, inakigarm and 6 others like this.
  3. Mike1970

    Mike1970 Active Member Licensed User


    WOW :D
    Thanks, very much
     
  4. Mike1970

    Mike1970 Active Member Licensed User


    Erel, sorry for the delay, a question.. Why when this code generate that shape i see in the logs a lot of 1?
    Like:


    Code:
    3
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    And so on for a while
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Mike1970 likes this.
  6. Mike1970

    Mike1970 Active 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