Page 213 - Open Soource Technologies 304.indd
P. 213

Open Source Technologies



                   Notes         True Type: It is an outline font standard originally developed by Apple Computer in the late
                                 1980s as a competitor to Adobe’s Type 1 fonts used in Post Script.
                                                Create an Image from Scratch Using PHP

                                                Draw an Image

                                 12.8  Self Assessment Questions


                                    1.  Colours are allocated using the imagecolorallocate() function.
                                       (  a)  True                     (b)  False

                                    2.  To write text to your image, you will need not to use the imagestring() function.
                                       (  a)  True                     (b)  False

                                    3.  Colours are represented by three digits, known as
                                       (  a)  RCB value                (b)  RTB value
                                       (  c)  RGB value                (d)  None of the above.

                                    4.  Current versions of the PHP distribution include a bundled version.
                                       (  a)  GD graphics library      (b)  CD graphics library

                                       (  c)  GE graphics library      (d)  All of the above.
                                    5.  What basic function used to create a new image is called?

                                       (  a)  Imagecreate()            (b)  Image Create()
                                       (  c)  Image Create()           (d)  None of the above.

                                    6.  In addition to creating images from other images, and drawing images on your own, you
                                      can not create images based on user input.

                                       (  a)  True                     (b)  False

                                 12.9 Review Questions

                                    1.  What RGB values would you use for pure black and pure white?

                                    2.  How do you create a new, blank canvas that is 300 pixels wide and 200 pixels tall?

                                    3.  What functions is used to draw a polygon and a filled polygon?
                                    4.  How to create an Image in PHP?

                                    5.  Create an Image from Scratch Using PHP.

                                    6.  Explain Image Creation Process.
                                    7.  Give explanation of the ICP Code.

                                    8.  What does Writing Text to the Image mean?
                                    9.  Explain how to output the Image.





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