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++ 3.0r4 - <b>disp_peekbox</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
disp_peekbox

Usage


   #include <disp.h>
   void disp_peekbox(unsigned *save, unsigned trow, unsigned lcol,
   unsigned brow, unsigned rcol)

Description

   Stores a rectangular area of the screen defined by top left trow, lcol
   and bottom right brow, rcol in the user supplied buffer save which should
   point to an unsigned integer array large enough to hold the area being
   saved. This is calculated as follows:

       size = ((brow-trow+1) * (rcol-lcol+1)) * sizeof(unsigned short)

Example 

   #include <conio.h>
   #include <disp.h>
   #include <stdlib.h>


   int main()
   {
       unsigned buf[20*5];

       disp_open();
       disp_move(0,0);
       disp_eeop();
       disp_box(0,0x70,0,0,4,19);
       disp_peekbox(buf,0,0,4,19);
       disp_move(0,0);
       disp_eeop();
       disp_puts("hello world");
       disp_flush();
       getch();
       disp_pokebox(buf,0,0,4,19);
       disp_close();
       return EXIT_SUCCESS;
   }

See Also


   Display package,  disp_pokebox,  disp_box,  disp_fillbox,
   disp_peekw,  disp_pokew



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