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

Android Question Draw shape with BitmapCreator

Discussion in 'Android Questions' started by asales, Jul 18, 2019.

  1. asales

    asales Well-Known Member Licensed User

  2. sz4t4n

    sz4t4n Member Licensed User

    Hi,

    maybe simple solution to draw circle out of the screen coordinates?

    upload_2019-7-18_7-23-53.png

    Code:
    Region Project Attributes
        
    #MainFormWidth: 100
        
    #MainFormHeight: 200
    #End Region

    Sub Process_Globals
        
    Private fx As JFX
        
    Private MainForm As Form
        
    Private Canvas1 As Canvas
    End Sub

    Sub AppStart (Form1 As Form, Args() As String)
        MainForm = Form1
        MainForm.RootPane.LoadLayout(
    "Layout1"'Load the layout file.
        MainForm.Show
        
        Canvas1.DrawCircle(
    200,-100,250,fx.Colors.Black,True,0)
    End Sub

    'Return true to allow the default exceptions handler to handle the uncaught exception.
    Sub Application_Error (Error As Exception, StackTrace As StringAs Boolean
        
    Return True
    End Sub
     
  3. DonManfred

    DonManfred Expert Licensed User

    1. He is asking a B4A question
    2. about how to do it with BitmapCreator
     
  4. 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