Page 214 - DCAP408_WEB_PROGRAMMING
P. 214

Windows Programming                                           Dr. Anil Sharma, Lovely Professional University




                    Notes                                 Unit 13: Windows GDI


                                     CONTENTS
                                     Objectives
                                     Introduction

                                     13.1 Windows GDI
                                          13.1.1  Displaying Text
                                          13.1.2  Displaying Pixels

                                          13.1.3  Drawing Lines
                                          13.1.4  Drawing Filled Shapes
                                          13.1.5  Pens and Brushes
                                          13.1.6  Window Size
                                          13.1.7  Forcing a Redraw

                                     13.2 Summary
                                     13.3 Keywords
                                     13.4 Review Questions

                                     13.5 Further Readings
                                   Objectives


                                   After studying this unit, you will be able to:
                                      Explain Windows GDI
                                      Discuss the Windows GDI capabilities

                                   Introduction


                                   The Microsoft Windows graphics device interface (GDI) enables applications to use graphics and
                                   formatted text on both the video display and the printer. Windows-based applications do not
                                   access the graphics hardware directly. Instead, GDI interacts with device drivers on behalf of
                                   applications.

                                      Where applicable: GDI can be used in all Windows-based applications.
                                      Developer audience: This API  is designed for use by C/C++ programmers. Familiarity
                                       with the Windows graphical user interface and message-driven architecture is required.

                                      Run-time requirements: For information, on which operating systems are required to use
                                       a particular function.

                                   13.1 Windows GDI

                                   GDI stands for Graphics Device Interface. It provides many functions for displaying graphics in
                                   your Windows application.





          208                               LOVELY PROFESSIONAL UNIVERSITY
   209   210   211   212   213   214   215   216   217   218   219