home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets (4th Edition) / Windows95Secrets4thEdition.iso / tools / graphics / bmpwiz / ext1.bas < prev    next >
MS-DOS COM Executable  |  1994-02-03  |  749 b 

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MS-DOS COM Executable (executable/com).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert MS-DOS COM Executable (executable/com) magic Unsupported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file DOS executable (COM), start instruction 0xe9020000 0d0a2720 default
99% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| e9 02 00 00 0d 0a 27 20 | 45 78 74 72 61 63 74 20 |......' |Extract |
|00000010| 2f 20 43 72 6f 6d 61 20 | 4b 65 79 0d 0a 27 20 53 |/ Croma |Key..' S|
|00000020| 65 6c 65 63 74 20 61 20 | 72 61 6e 67 65 20 6f 66 |elect a |range of|
|00000030| 20 52 47 42 20 63 6f 6c | 6f 72 20 61 6e 64 20 73 | RGB col|or and s|
|00000040| 75 62 73 74 75 74 65 20 | 77 69 74 68 20 61 20 72 |ubstute |with a r|
|00000050| 61 6e 67 65 2c 20 52 65 | 64 20 74 6f 20 42 6c 75 |ange, Re|d to Blu|
|00000060| 65 0d 0a 0d 0a 27 20 49 | 6e 70 75 74 3a 09 31 2d |e....' I|nput:.1-|
|00000070| 34 2d 38 0d 0a 27 20 4f | 75 74 70 75 74 3a 09 32 |4-8..' O|utput:.2|
|00000080| 34 20 62 69 74 20 74 72 | 75 65 20 63 6f 6c 6f 72 |4 bit tr|ue color|
|00000090| 0d 0a 0d 0a 27 20 41 75 | 74 68 6f 72 3a 09 41 6e |....' Au|thor:.An|
|000000a0| 64 72 65 61 20 42 65 6e | 6f 6e 69 09 09 09 20 72 |drea Ben|oni... r|
|000000b0| 65 76 3a 09 31 2e 32 0d | 0a 0d 0a 0d 0a 73 74 72 |ev:.1.2.|.....str|
|000000c0| 69 6e 67 20 20 20 20 09 | 69 6e 70 46 69 6c 65 2c |ing .|inpFile,|
|000000d0| 6f 75 74 46 69 6c 65 0d | 0a 44 65 76 43 6f 6e 09 |outFile.|.DevCon.|
|000000e0| 49 62 6d 70 2c 4f 62 6d | 70 0d 0a 52 47 42 09 70 |Ibmp,Obm|p..RGB.p|
|000000f0| 69 78 0d 0a 66 6c 6f 61 | 74 20 20 09 78 2c 79 2c |ix..floa|t .x,y,|
|00000100| 74 0d 0a 0d 0a 69 6e 70 | 46 69 6c 65 3d 22 54 65 |t....inp|File="Te|
|00000110| 73 74 69 2e 62 6d 70 22 | 0d 0a 6f 75 74 46 69 6c |sti.bmp"|..outFil|
|00000120| 65 3d 22 54 65 73 74 6f | 2e 62 6d 70 22 0d 0a 0d |e="Testo|.bmp"...|
|00000130| 0a 49 62 6d 70 3d 4c 6f | 61 64 49 6d 61 67 65 28 |.Ibmp=Lo|adImage(|
|00000140| 69 6e 70 46 69 6c 65 29 | 0d 0a 4f 62 6d 70 3d 43 |inpFile)|..Obmp=C|
|00000150| 72 65 61 74 65 49 6d 61 | 67 65 28 49 62 6d 70 2e |reateIma|ge(Ibmp.|
|00000160| 57 69 64 74 68 2c 49 62 | 6d 70 2e 48 65 69 67 68 |Width,Ib|mp.Heigh|
|00000170| 74 2a 2e 38 30 2c 32 34 | 29 0d 0a 0d 0a 46 6f 72 |t*.80,24|)....For|
|00000180| 20 79 3d 30 20 74 6f 20 | 4f 62 6d 70 2e 48 65 69 | y=0 to |Obmp.Hei|
|00000190| 67 68 74 2d 31 0d 0a 20 | 20 20 46 6f 72 20 78 3d |ght-1.. | For x=|
|000001a0| 30 20 74 6f 20 4f 62 6d | 70 2e 57 69 64 74 68 2d |0 to Obm|p.Width-|
|000001b0| 31 0d 0a 20 20 20 20 20 | 20 70 69 78 3d 47 65 74 |1.. | pix=Get|
|000001c0| 50 69 78 65 6c 28 49 62 | 6d 70 2c 78 2c 79 29 0d |Pixel(Ib|mp,x,y).|
|000001d0| 0a 20 20 20 20 20 20 70 | 69 78 2e 47 72 65 65 6e |. p|ix.Green|
|000001e0| 3d 70 69 78 2e 52 65 64 | 2a 2e 39 30 0d 0a 20 20 |=pix.Red|*.90.. |
|000001f0| 20 20 20 20 70 69 78 2e | 42 6c 75 65 3d 70 69 78 | pix.|Blue=pix|
|00000200| 2e 47 72 65 65 6e 2a 2e | 34 30 0d 0a 20 20 20 20 |.Green*.|40.. |
|00000210| 20 20 53 65 74 50 69 78 | 65 6c 28 4f 62 6d 70 2c | SetPix|el(Obmp,|
|00000220| 78 2c 79 2c 70 69 78 29 | 0d 0a 20 20 20 4e 65 78 |x,y,pix)|.. Nex|
|00000230| 74 20 78 0d 0a 20 20 20 | 69 66 28 79 25 31 30 3d |t x.. |if(y%10=|
|00000240| 30 29 0d 0a 20 20 20 20 | 20 20 44 73 70 57 68 69 |0).. | DspWhi|
|00000250| 6c 65 28 22 43 72 6f 6d | 61 20 4b 65 79 22 2c 31 |le("Crom|a Key",1|
|00000260| 30 30 2f 4f 62 6d 70 2e | 48 65 69 67 68 74 2a 79 |00/Obmp.|Height*y|
|00000270| 29 0d 0a 20 20 20 20 20 | 20 50 72 65 76 69 65 77 |).. | Preview|
|00000280| 28 4f 62 6d 70 2c 22 4f | 75 74 70 75 74 22 2c 35 |(Obmp,"O|utput",5|
|00000290| 2c 35 29 09 0d 0a 20 20 | 20 65 6e 64 69 66 0d 0a |,5)... | endif..|
|000002a0| 4e 65 78 74 20 79 0d 0a | 50 72 65 76 69 65 77 28 |Next y..|Preview(|
|000002b0| 4f 62 6d 70 2c 22 4f 75 | 74 70 75 74 22 2c 35 2c |Obmp,"Ou|tput",5,|
|000002c0| 35 29 09 0d 0a 44 73 70 | 4d 65 73 28 22 45 6e 64 |5)...Dsp|Mes("End|
|000002d0| 22 29 0d 0a 53 61 76 65 | 49 6d 61 67 65 28 4f 62 |")..Save|Image(Ob|
|000002e0| 6d 70 2c 6f 75 74 46 69 | 6c 65 29 0d 0a |mp,outFi|le).. |
+--------+-------------------------+-------------------------+--------+--------+