Android Question Draw shape with BitmapCreator

asales

Expert
Licensed User
Longtime User
I tried to draw something like this shape (the blue part) with BitmapCreator without success.
Screenshot_Social_Posts_20190716-224609.png


I based my code in this code from Erel:
https://www.b4x.com/android/forum/threads/b4x-drawing-with-bitmapcreator.98887/#post-622799

Any help are welcome. Thanks.
 

sz4t4n

Member
Licensed User
Longtime User
Hi,

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

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


B4X:
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 String) As Boolean
    Return True
End Sub
 
Upvote 0
Top