Creating a jigsaw puzzle from an image
BlitzMax Forums/BlitzMax Programming/Creating a jigsaw puzzle from an image
| ||
Hi everyone I am trying to design a screensaver that creates puzzles from photos, and then scatters them and auto solves. I have a very basic prototype but I would welcome suggestions as I believe it could definitely be improved upon. Firstly I divide the image into 10 x 8 = 80 rects for example. Then I create my jigsaw pattern using bezier lines on a pixmap which is also going to be the mask, these are then coloured using a floodfill with an incrementing hue ready for the next step. This hue is then replaced with the original photo section and then grabbed forming the final jigsaw piece, this is then repeated for all pieces. Any thoughts, comments and suggestions are welcome. Thanks Brendan |
| ||
this might have some useful information. www.blitzbasic.com/Community/posts.php?topic=94692 |