home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / winnt / plgblt / readme.txt < prev    next >
Text File  |  1996-01-17  |  1KB  |  30 lines

  1. PlgBlt Demonstration
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. The PlgBlt function can copy a bit image onto an arbitrary parallelogram.
  8. Applications can use this function to easily rotate or shear bitmaps. The
  9. PLGBLT sample is an easy-to-use demonstration of how this can be done.
  10.  
  11. MORE INFORMATION
  12. ================
  13.  
  14. The program presents a dialog box that displays the input parameters to the 
  15. PlgBlt function. By choosing the "New Src" or "New Mask" button, the user 
  16. can select a new bitmap for use as the source bitmap or as the monochrome 
  17. mask bitmap. The client area of the window is divided into three regions. 
  18. The region on the left contains the result of the PlgBlt operation. The 
  19. region in the middle provides the source HDC, and the region on the right 
  20. provides the mask bitmap for the PlgBlt operation.
  21.  
  22. In each of the three regions, there is a "direct manipulation object." This 
  23. object may be picked up and moved by clicking the left mouse button in the 
  24. upper-left corner and dragging. The three objects are restricted in their 
  25. response to user actions to correctly reflect the parameters to the PlgBlt 
  26. function. The object in the mask region may be moved only. The object in the 
  27. source region may be moved or sized. The object in the destination region 
  28. may be moved, sized, sheared, or rotated. Please see the WXFORM sample for 
  29. more information on how this direct manipulation is accomplished. 
  30.