home *** CD-ROM | disk | FTP | other *** search
/ TopWare 18: Liquid / Image.iso / liquid / top2124 / gepackt.exe / PASCAL.ZIP / EXAMPLE.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1994-02-02  |  1.1 KB  |  46 lines

  1. uses wincrt,windos;
  2.  
  3. const StandardDLL = 'c:\windows\framegrb';
  4.       SpecialDLL  = 'c:\windows\framer';
  5.  
  6. {$I defs}
  7. {$I defs2}
  8.  
  9. {*******************************************************************}
  10. begin
  11.  
  12.  {standard PC-Video initialization}
  13.  
  14.  PCV_LoadConfiguration;
  15.  PCV_Initialize;
  16.  PCV_SetColorkey(255);
  17.  PCV_CreateWindow(0,0,640,480,true);
  18.  PCV_SetWindowSize(640,480,true);
  19.  PCV_SetWindowPosition(0,0);
  20.  PCV_Freezevideo;
  21.  
  22.  {first thing to do is initialize the DLL. First parameter is the number
  23.  of additional pages you require and the second parameter is the type
  24.  of card installed.}
  25.  
  26.  {Card Type 0 = PE-Von PV100, Adda Aver 2000, Aitech Pro PC Video}
  27.  {Card Type 1 = Creative Labs VideoBlaster}
  28.  
  29.  {A minimum of one extra page must be initailized.}
  30.  
  31.  InitDll(1,0);
  32.  clearpage(0);
  33.  blockrgb(0,0,640,480,100,100,100);
  34.  
  35.  {Make sure you have a .MMP and a .RLE file in the following path}
  36.  {Note the filename has no extension}
  37.  
  38.  MaskImage('C:\windows\grabit\obj02',0,0,1,1,0);
  39.  
  40.  write('Press Enter');
  41.  readln;
  42.  Freememory;
  43.  PCV_EXIT;
  44.  halt(0);
  45. end.
  46.