Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - fg_box_area http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                               fg_box_area

   Usage
   #include <fg.h>
   long int far fg_box_area(fg_const_pbox_t b)

   Description
   Returns  the  number  of  pixels in a box. This  is  very  useful  for
   calculating the storage requirements for fg_readbox.

   Example
   {
   fg_color_t *color_p;
   fg_box_t read_box;
   read_box [FG_X1] = 10;
   read_box [FG_Y1] = 0;
   read_box [FG_X2] = 100;
   read_box [FG_Y2] = 100;
   color_p = malloc(sizeof(fg_color_t) * fg_box_area(read_box));
   assert(color_p != NULL);
   fg_readbox(read_box, color_p);
   }


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson