Programming a jigsaw app isn't that hard. Each puzzle can be a jpeg of the picture. The program loads it and makes overlapping bitmaps for the pieces, loads predefined piece shapes to overlay, masked in the middle, Do a masked blit on each one and save it to a new bitmap, then destroy the first bitmap, each in turn, then original jpeg buffer, and you're in business. When a piece gets moved to within a few pixels of its designated x and y, you snap it into place, and the user isn't allow to move it again. It's a small program.
Log in to post a comment.