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

Erel

Administrator
Staff member
Licensed 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.
 

kimstudio

Member
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.
 
Top