home *** CD-ROM | disk | FTP | other *** search
- 'Program Name : ScrnScan.bas scans top of screen/copys pixel by pixel
- ' : at an at offset
- 'Author : Spectra Publishing - Tech Support Lloyd L. Smith
- 'Date : 09-29-90
- 'Compuserve # : GO PCVENB, Vendor #12/Spectra, Tech Support ID 71530,2640
- 'Tech Support BBS: 813-625-1721, PC-Board, 8,N,1 USR HST 300 - 14.4, 24hrs
- 'Tech Support Fax: 813-625-1698 G2 & G3 compatible
- 'Tech Support Voc: 813-625-1172 Voice
-
-
- screen 9,,0,0
- color 12,0 'you can change fg, bg and see the effects
- locate 1,1:print "This is a test of the system";
-
- for y=0 to 20 '349 full vertical length of screen 9
- for x=0 to 639 '640 full horizontal width of screen
- clr=point(x,y) 'get color of point under x,y
- x1=point(0):y1=point(1) 'point(0) gets x coordinate, point(1) gets y coordinate
- pset(x1,y1+100),clr 'turns on a pixel at x,y,color
-
- 'test for a particular color and force background to be black
- 'if clr=15 then pset(x1,y1+100),clr else pset(x1,y1+100),0
-
- k$=inkey$:if k$=chr$(27) then system 'exit scan routine
- next x
- next y
-