B4J Question Path add Arc?

ilan

Expert
Licensed User
Longtime User
i am missing some features in the path object in b4x.
in b4a i can use Javaobject to add more options like addarc using the code as described here:


is there a b4x solution for that? i would like to make a jigsaw puzzle but using b4x code.
any ideas how to do that?
 

ilan

Expert
Licensed User
Longtime User
i will need to create an algorithm to draw those shapes that should also be resizeable.

do you want the points for a shape? or do you want an image?

the shapes should look like this:

jigsawexample.jpg
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
No, onl B4J, it uses Java objects.
The documentation is here: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/canvas/GraphicsContext.html

In B4A you may have a look at ABExtDrawing library.

I have never looked deeper for B4i.

For cross-platform methods you may have a look at this thread: https://www.b4x.com/android/forum/threads/b4x-bitmapcreator.105384/#content
The test project in this thread contains AddBezier routines, you could make your own arc routines based on the same principle: add short lines like every degree.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0
Top