Microsoft KB Archive/42232

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

MSJ TRANSFRM : OS/2 Graphics Programming Interface Code

PSS ID Number: Q42232 Article last modified on 04-16-1991

MS-DOS | OS/2

Summary: The following is a summary of the program found in the “Microsoft Systems Journal” and in the Software/Data Library: Issue: July 1988, Vol. 3, No. 4, pages 23-40 Title: “OS/2 Graphics Programming Interface: An Introduction to Coordinate Spaces” Author: Charles Petzold Keyword: TRANSFRM TRANSFRM can be found in the Software/Data Library by searching on the keyword TRANSFRM, the Q number of this article, or S12145. TRANSFRM was archived using the PKware file-compression utility. This program demonstrates how to use make use of the various graphics transforms in your Presentation Manager (PM) application. The following text is taken from the cover of the “Microsoft Systems Journal”: Coordinate spaces, which define drawing areas, are an important component of the OS/2 Presentation Manager. Transforms allow the mapping of objects from one coordinate space to the next. Coordinate spaces under the micro-PS and some of the GPI functions for handling transforms are explored.

More Information: This program demonstrates the following concepts of PM programs: 1. The relationship between the five coordinate spaces and four transforms that make up the transition from world coordinates to device coordinates 2. How a transform matrix can be used to shift, scale, rotate, and shear objects drawn with GPI primitives These concepts are demonstrated in this sample program by drawing a picture on the screen and then allowing you to manipulate the transform and see the changes in the picture that different transforms result in.