| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- { %GRAPH }
- { %TARGET=go32v2,win32,linux }
- program TestGetPutim; {Compiled with the 0.99.13 version under GO32V2!}
- uses
- graph;
- var graphdriver,graphmode :integer;
- imsize:longint;
- im:pointer;
- begin
- {$ifdef win32}
- graphdriver:=VGA;
- graphmode:=detect;
- {$else not win32}
- graphdriver:=VESA;
- graphmode:=$103;
- {$endif}
- Initgraph(graphdriver,graphmode,'');
- {************}
- (*
- setcolor(6);
- moveto(0,0); {Some drawing}
- lineto(500,500);
- circle(95,95,80);
- {************}
- {!!!!!!!!!!!!}
- imsize:= imagesize(0,0,300,300); {This is the part we have problem with.}
- getmem(im,imsize); {The result we get after PutImage is}
- getimage(0,0,300,300,im^); {chaotic independently from the graphmode!}
- putimage(50,50,im^,0); {We tested this on a S3Trio 3D videcard,}
- {which is VESA compatible.}
- {!!!!!!!!!!!!}
- readln;
- {repeat until keypressed;}
- *)
- closegraph;
- end.
- {
- I. Groma
- [email protected]
- Budapest 11/24/1999
- }
|