Sample: PlgBlt Demonstration

Summary:

Win32 offers a new API function that will copy a bit image
onto an arbitrary parallelogram. Now, for the first time,
application programs can trivially rotate or shear bitmaps.
The PLGBLT SDK sample is an easy to use demonstration of how
this new API function may be used.

More Information:

The program presents a dialog box on top of the window that
displays the input parameters to the PlgBlt function. By
choosing the "New Src" or "New Mask" button, the user can
select a new bitmap for use as the source bitmap or as the
monochrome mask bitmap. The client area of the window is
divided into three regions. The region on the left contains
the result of the PlgBlt operation. The region in the middle
provides the source HDC, and the region on the right
provides the mask bitmap for the PlgBlt operation.

In each of the three regions, there is a "direct
manipulation object." This object may be picked up and moved
by clicking the left mouse button in the top-left corner and
dragging. The three objects are restricted in their response
to user actions to correctly reflect the parameters to the
PlgBlt function. The object in the mask region may be moved
only. The object in the source region may be moved or sized.
The object in the destination region may be moved, sized,
sheared, or rotated. Please see the WXFORM sample for more
information on how this direct manipulation is accomplished.
Additional information on the WXFORM sample may be obtained
by querying on the word WXFORM in this knowledge base.
