home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / expas.arj / TEMP / 10-18.PAS < prev    next >
Pascal/Delphi Source File  |  1995-01-20  |  877b  |  45 lines

  1. program main;
  2. uses fgmain, fgbitmap, fgmisc;
  3.  
  4. var
  5.   source : array [1..2560] of byte;
  6.   dest   : array [1..3200] of byte;
  7.  
  8. begin
  9.  
  10.   { initialize the video environment }
  11.  
  12.   fg_initpm;
  13.   fg_setmode(19);
  14.  
  15.   { draw a blue rectangle with a thick white border }
  16.  
  17.   fg_setcolor(9);
  18.   fg_rect(0,63,0,39);
  19.   fg_setcolor(15);
  20.   fg_boxdepth(5,5);
  21.   fg_box(0,63,0,39);
  22.   fg_move(32,20);
  23.   fg_justify(0,0);
  24.   fg_print('SHEAR',5);
  25.  
  26.   { retrieve the rectangle as a mode-specific bitmap }
  27.  
  28.   fg_move(0,39);
  29.   fg_getimage(source,64,40);
  30.   fg_waitkey;
  31.  
  32.   { shear the bitmap horizontally and to the right 16 pixels }
  33.   { then display it in the lower left corner of the screen   }
  34.  
  35.   fg_move(0,199);
  36.   fg_shear(source,dest,64,40,80,1);
  37.   fg_putimage(dest,80,40);
  38.   fg_waitkey;
  39.  
  40.   { restore 80x25 text mode and exit }
  41.  
  42.   fg_setmode(3);
  43.   fg_reset;
  44. end.
  45.