(Click the screenshot to enlarge)

Game Type Puzzle
Cost Freeware - OpenSource

Web Site

N/A

System Requirements

OS/2 Warp 4 - eCS 1.0 or later

Version Available

?

Download

64.6 KB

Latest Update

1989-May-02

 

Synopsis:

Created 1988, Microsoft Corporation.
Purpose: To illustrate the use of Gpi.

This program provides a jigsaw puzzle, based on a decomposition of an arbitrary bitmap loaded from a file.  The user can jumble the pieces, then drag them individually by means of the mouse.  The image can be zoomed in and out and scrolled up/down and left/right.

JIGSAW uses BitBlt with clip paths to create a collection of picture fragments which are the puzzle pieces. Each piece is associated with with a single retained segment and an auxiliary data structure, used for drawing and for selection with the mouse. To retain responsiveness to user requests, the real work is done in a second thread, with work requests transmitted from the main thread in the form of messages.This arrangement makes it possible for the user to over-ride lengthy drawing operations with a higher-priority request (eg. program termination, magnification change, etc.).

Individual pieces are made to "move" by changing their model transforms. Scrolling and zooming of the whole picture is done by changing the default viewing transform.