tw0711.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. { %GRAPH }
  2. program TestGetPutim; {Compiled with the 0.99.13 version under GO32V2!}
  3. uses
  4. graph;
  5. var graphdriver,graphmode :integer;
  6. imsize:longint;
  7. im:pointer;
  8. begin
  9. {$ifdef win32}
  10. graphdriver:=VGA;
  11. graphmode:=detect;
  12. {$else not win32}
  13. graphdriver:=VESA;
  14. graphmode:=$103;
  15. {$endif}
  16. Initgraph(graphdriver,graphmode,'');
  17. {************}
  18. (*
  19. setcolor(6);
  20. moveto(0,0); {Some drawing}
  21. lineto(500,500);
  22. circle(95,95,80);
  23. {************}
  24. {!!!!!!!!!!!!}
  25. imsize:= imagesize(0,0,300,300); {This is the part we have problem with.}
  26. getmem(im,imsize); {The result we get after PutImage is}
  27. getimage(0,0,300,300,im^); {chaotic independently from the graphmode!}
  28. putimage(50,50,im^,0); {We tested this on a S3Trio 3D videcard,}
  29. {which is VESA compatible.}
  30. {!!!!!!!!!!!!}
  31. readln;
  32. {repeat until keypressed;}
  33. *)
  34. closegraph;
  35. end.
  36. {
  37. I. Groma
  38. [email protected]
  39. Budapest 11/24/1999
  40. }