B4J Question What is needed to code a Painting Book

vascofire

Member
I would like to have some advice on what I should use to code a book painting program for my children using B4J.

I'm talking about the libraries and classes to use, and the code on how to recognize the black edges of the drawing.

Any idea is welcome.
Thank you in advance.
 

Attachments

  • example.jpeg
    example.jpeg
    35.8 KB · Views: 104

Erel

B4X founder
Staff member
Licensed User
Longtime User
I notice for the solution provided in this link there are filling "errors" near the black boundary, which means some pixels near boundary are not filled, how to solve that? to fill with a tolerance?
Two options:
1. Modify the algorithm and make it test the difference between the colors instead of checking for equality.
2. Use images where the lines were drawn without antialiasing.
 
Upvote 0

kimstudio

Active Member
Licensed User
Longtime User
That's so good. You could try Erel's options to solve the near boundary problem.

Two options:
1. Modify the algorithm and make it test the difference between the colors instead of checking for equality.
2. Use images where the lines were drawn without antialiasing.
 
Upvote 0
Top