Page 99 - DCAP504_Computer Graphics
P. 99

Computer Graphics



                          The figure 7.2 depicts an object defined in the interface and viewport coordinates.
                                              Figure 7.2: An Object Defined in the Interface and Viewport
                                                               Coordinates




















                          Source: http://www.cs.mtsu.edu/~jhankins/files/4250/notes/WinToView/WinToViewMap.html



                                      Windows can also be termed as co-ordinates.

                          Figure 7.2 illustrates how to project a part of the image using viewport coordinates. Here, the part of the
                          image that is required to be projected on the screen window is selected out of the interface window.
                          Window-viewport Relationship
                          The window-viewport relationship can be explained with the help of a figure. Figure 7.3 depicts an
                          image viewed from a window and the same image viewed in a viewport.

                                              Figure 7.3: An Object in Window and an Image in Viewport



































                          92                      LOVELY PROFESSIONAL UNIVERSITY
   94   95   96   97   98   99   100   101   102   103   104