home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CLIPART / COLSCN10.ZIP / COLSCAN.DOC next >
Text File  |  1992-04-20  |  23KB  |  515 lines

  1.                      ColorScan Version 1.00
  2.                      Copyright 1992 Jeremy Lilley
  3.                      All Rights Reserved
  4.  
  5. Before I explain anything, the following files are:
  6.  
  7.      Colscan.Doc - This file (documentation)
  8.      Colscan.Exe - Color Plane Converter (more later)
  9.      Order.Prn   - Order form 
  10.      MooseW.PCX   
  11.      MooseR.PCX  - 4 .PCX files to use Colscan with and to test it with
  12.      MooseG.PCX   
  13.      MooseB.PCX   
  14.      Colscan.Bat - A sample batch file for Colscan
  15.      Demo.Bat    - A small little demo of a scan 
  16.  
  17. Also, this program takes a bit of effort to use and understand. Please
  18. be patient, as all things will be explained in due time. Before you
  19. rush to the bottom of this file to find the registration fee, and
  20. before you go off and delete Order.Prn, the  registration is as low as
  21. $5. (More later) You may have to reread this file. Anyway, if you want
  22. to see the demo first, go ahead and run the batch file. Notice that it
  23. is not perfect, but could be improved. By the way, it is from a sticker
  24. from Radio Sweden International (shortwave).
  25.  
  26.               
  27. This is a program that can let you use your B/W scanner to scan in
  28. 16 colors! The process is MUCH more complicated and time-consuming
  29. than regular scanning, but it sure is cheaper than a color scanner!
  30. To use this program, you must have a VGA monitor and 384K. This uses
  31. only 640X480 pictures and anything else can be unpredictable. Your
  32. scanner must be able to produce images in Line-Art mode. WHEN YOU
  33. SCAN FOR THIS PROGRAM, YOU MUST ALWAYS USE LINE-ART MODE INSTEAD OF
  34. THE GRAY-SCALE MODE. Probably on the side of your scanner is a 
  35. switch where you can select the dithering mode. It will say something
  36. like:
  37.                         
  38.                         Text    Photo
  39.                           █  ■ ∙ ·
  40.  
  41. Switch the mode to text so that the gray patterns are not used.
  42.  
  43. Everything will be explained in due time, so sit tightly, but first
  44. a synopsis of this program:
  45.  
  46. This program allows you to create 640X480X16 (VGA, 16 colors) pictures
  47. with your B/W hand scanner and a few tools. The changes are meant to
  48. be temporary and this program is good for people who need a few VGA
  49. scans and have a lot of time and patience, but not $$$. If you are
  50. planning to make 50 scans a day and want 256 colors in Super VGA mode,
  51. or have as much money as you want for a scanner (HA!HA!HA!), you would
  52. be better off buying a 256 color scanner (or a 262,144 color scanner!!!)
  53. or even a flatbed page scanner.
  54.  
  55. You need the following materials to temporarily scan in color:
  56.  
  57.  ■ A sheet of acetate (available at art stores, use 8½ X 11 sheet)
  58.                (Also used in overhead projectors)
  59.    
  60.  ■ 3 filters discussed later
  61.  
  62.  ■ A guide for your scanner (many scanners have metal guides included
  63.           with them, you can get one of the fancy guides from
  64.           some places, or you can make one yourself)
  65.  
  66.  ■ The scanning utility included with your scanner
  67.  
  68.  ■ A VGA screen capture utility. If you have Frieze (included in PC 
  69.          PaintBrush, Colscan can automatically activate it. Otherwise,
  70.          I can recommend VGACAP, included with VGACAD, a good shareware
  71.          drawing program. VGACAP takes up about 5K and can save in
  72.          PCX or GIF.
  73.  
  74.  ■ A VGA paint program is recommended too. You may need to patch things
  75.    up.
  76.  
  77.  ■ Rulers, pencils, clear tape, etc.
  78.  
  79. First of all, the acetate is used to place over the framing and the
  80. images to scan and makes things MUCH EASIER. You will need to take
  81. EVERYTHING in place (including the guide) because you need to make
  82. 4 PERFECT scans. You may even want to put *small* blocks on either
  83. side of the scanner to make things perfect. You should have lots 
  84. of time and a steady hand.
  85.  
  86. Now you may be wondering "WHAT'S GOING ON!?!?!?" Here it goes:
  87. The images you are scanning will be converted into 16 colors. There
  88. are 4 bits (2^4=16) for each pixel. These bits represent Red, Green,
  89. Blue, and Whiteness. If the Red bit were on, the color would be red.
  90. If both red and blue were on, magenta is made. Green and White make
  91. light green. If you are not familiar with the mixing of light, you
  92. may wonder where the yellow is. Yellow is red, green, and white.
  93. Here is a chart on what the colors make:
  94.  
  95.                THE COLOR CHART
  96.      White Red Green Blue     Color
  97. ________________________________________________________________
  98.      Off  Off  Off  Off       Black
  99.      Off  Off  Off  On        Blue
  100.      Off  Off  On   Off       Green
  101.      Off  Off  On   On        Cyan
  102.      Off  On   Off  Off       Red
  103.      Off  On   Off  On        Magenta
  104.      Off  On   On   Off       Brown
  105.      Off  On   On   On        Light Gray
  106.      On   Off  Off  Off       Dark Gray
  107.      On   Off  Off  On        Light Blue
  108.      On   Off  On   Off       Light Green
  109.      On   Off  On   On        Light Cyan
  110.      On   On   Off  Off       Light Red
  111.      On   On   Off  On        Light Magenta
  112.      On   On   On   Off       Yellow
  113.      On   On   On   On        White
  114.  
  115. Now I have to go into a little background.
  116.  
  117. If you use PC-Paintbrush or many other paint programs, you may
  118. sometimes see when you go to the "Get Info" window. One of the entries 
  119. may say "Planes: 4." When editing monochrome images in B/W, the entry 
  120. may say "Planes: 1." What are planes ? On CGA monitors, the image was 
  121. a direct representation of the video memory. There were 2 bits in a 
  122. color so each byte was 4 pixels. (8 bits in byte). 
  123.  
  124. However, IBM came out with the EGA monitor and changed all of that
  125. forever. A new concept called planes was introduced. There are
  126. separate planes (4 in all for a 16 color picture) which control the 4
  127. primary colors (White , Red, Green, and Blue) mentioned in THE COLOR
  128. CHART. You see, EGA required 64K and 128K to run properly. VGA
  129. requires a 256K video buffer to operate. SVGA requires 512K to operate
  130. and 1 Megabyte of a video buffer to work in 256 colors. IBM had taken
  131. the approach of mapping the video buffer (THESE REQUIREMENTS ARE FOR
  132. THE VIDEO BUFFER. THE VIDEO BUFFER STORES THE CONTENTS OF THE SCREEN
  133. AND LETS THE CRT CONTROLLER READ ITSELF WHEN IT NEEDS TO REWRITE THE
  134. SCREEN.) into the system ram (That's why you only get 640K) right
  135. above the 640K mark. All of the ROM is mapped above there too. Anyway,
  136. doing this was okay when the CGA adapter only needed 16K or 32K. This
  137. was impossible for 1M of RAM. That was a dilemma for IBM when it
  138. realized it must continue to map the video memory into the system RAM
  139. for backward compatibility. It divided the video memory into 4 areas
  140. called planes. A programmer sets the plane (white, red, green, or
  141. blue) and then every bit represents a pixel for that plane color to be
  142. on or off. To clarify this, I will give an example on how to set a
  143. pixel to yellow:
  144.  
  145. Set Plane to White
  146. Calculate Memory Address
  147. Set Bit
  148. Set Plane to Red
  149. Calculate Memory Address
  150. Set Bit
  151. Set Plane to Green
  152. Calculate Memory Address
  153. Set Bit
  154. Set Plane to Blue (You must zero the blue bit or you'll have white)
  155. Calculate Memory Address
  156. Set Bit to off!!!!
  157.  
  158. It is must faster when you set lines at a time, but everything is more
  159. complicated in practice.
  160.  
  161. WHAT DOES THIS HAVE TO DO WITH MY SCANNER!?!?!? 
  162.  
  163. You have to create these 4 planes and then combine them with 
  164. Colscan.EXE. Colscan.EXE simply gets the 4 planes you have created,
  165. shows them, combines them, and then saves them using either Frieze
  166. (from PC PaintBrush) or another VGA capture utility like VGACAP 
  167. (mentioned above).
  168.  
  169.  
  170. HOW TO I CREATE THESE PLANES!?!?!?!
  171.  
  172. **********************************************************
  173.  
  174. HERE ARE THE INSTRUCTIONS:
  175.  
  176. There are really two ways to do the scanning: the direct-filter method
  177. and the photocopy method. If you have easy and quick access to a copier,
  178. I highly recommend using the photocopy method. The direct filter method
  179. is MUCH harder and longer. I can guarantee it will take over an hour for
  180. your first color scan this way. Also, if you have a scanner that uses
  181. anything but white light, (like my scanner, for instance) it will cause
  182. the output to be distorted chromatically. However, if you have a scanner
  183. that uses a different colored light and you still want to use the direct-
  184. filter method, you must make sure to use a darker filter and position a
  185. 60-100 watt lightbulb directly over the scannerand  move it along with 
  186. the scanner (you will discover this is hard!) at a constant height which 
  187. you have to calibrate and experiment with. Note: you should put something
  188. over the light to disperse it so that the picture is not too light in the
  189. middle and too dark at the sides.
  190.  
  191. *********************Direct-Filter Method:
  192.  
  193. First you need the 3 filters: Red, Green, and Blue. This may be
  194. the toughest part. You may see that there are 4 planes. The white 
  195. plane is done by scanning with no filter at a pretty high brightness 
  196. level. MAKE SURE TO TURN THE LIGHT LEVEL UP ALL THE WAY AND SET THE 
  197. SCANNER FOR LINE-ART MODE. You may need extra light when you scan if 
  198. the filter is too dark as mentioned above . Your contrast control is 
  199. the darkness level switch on your scanner. You can use cellophane for 
  200. the filters or photographic filters. GET THE CELLOPHANE IN AS LIGHT A 
  201. COLOR AND AS PURE A COLOR AS POSSIBLE. Find a 7-Up 2 Liter bottle (the 
  202. green ones) and look at the color of the bottle. That is the shade you 
  203. want to have and the lightness. Even with that, I had to turn up the 
  204. light..dark switch to the lightest level for it to scan properly.
  205. By the way, you can cut up a 7-Up bottle and use it as a filter.
  206. You need to obtain a Red, Green, and Blue filter. When you scan,
  207. you will scan once with red, green, blue and once without a filter.
  208. (4 Scans) If you are a photo-enthusiast, you may try photographing the 
  209. image with filters or something like that. Tell me how it works!
  210. Here is how to temporarily put the filter on the scanner:
  211.  
  212. Test your filters by scanning different colors with different
  213. filters. Test the color table. You will probably have to adjust
  214. the light levels up and add extra light. If you are using cellophane,
  215. you should just place a sheet over the page, but if you are using soft
  216. plastic filters like 7-UP bottles, you need to tape it like this:
  217.  
  218. Your scanner:
  219.  
  220.      ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  221.      ░░░░░░         (Scan window)                  ░░░░░
  222.      ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  223.                ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  224.                 ░░░░░░░░░░░░░░░░░░░░░░░░░░░
  225.                     ░░░░░░░░░░░░░░░░░░░░
  226.                       ░░░░░░░░░░░░░░░
  227.                       ░░░░░░░░░░░░░░░
  228.                       ░░░░░░░░░░░░░░░
  229.                       ░░░░░░░░░░░░░░░
  230.                       ░░░░░░░░░░░░░░░
  231.  
  232. Tape filter so it just goes over the clear scan window:
  233.      Tape                     Tape
  234.          \                             \
  235.      ░░░░██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██░░░░
  236.      ░░░░██▓▓▓▓▓▓▓▓▓▓▓Filter▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██░░░░
  237.      ░░░░██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██░░░░
  238.                ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  239.                 ░░░░░░░░░░░░░░░░░░░░░░░░░░░
  240.                     ░░░░░░░░░░░░░░░░░░░░
  241.                       ░░░░░░░░░░░░░░░
  242.                       ░░░░░░░░░░░░░░░
  243.                       ░░░░░░░░░░░░░░░
  244.                       ░░░░░░░░░░░░░░░
  245.                       ░░░░░░░░░░░░░░░
  246.  
  247. If your B/W scanner uses white light, you will not have as much of
  248. a problem  as if your scanner uses red or green light. You will probably
  249. have to get a desklamp and place it directly over the scanner. This
  250. will help. 60-100 watts will do. Calibrate the brightness level for
  251. the three filters and the whiteness plane. You must be thinking how you 
  252. can make 4 perfect scans, especially in 400 or 800 DPI. This is how you 
  253. prepare the scan surface:
  254.  
  255.  
  256.           █████████████████████████████████
  257.           █████████████████████████████████
  258.           █████████████████████████████████
  259.           ████Your Page in color to████████
  260.           ████████████scan█████████████████
  261.           █████████████████████████████████
  262.           █████████████████████████████████
  263.           █████████████████████████████████
  264.           █████████████████████████████████
  265.           █████████████████████████████████
  266.           █████████████████████████████████
  267.           █████████████████████████████████
  268.  
  269. Decide what area you want to scan. Make a right angle at the top with 
  270. a ruler over the page:
  271.  
  272.           █████████████████████████████████
  273.           █████████████████████████████████
  274.           █████████████████████████████████
  275.           ████Your Page in color to████████
  276.           ████████████scan█████████████████
  277.           ███████▓▓▓▓▓▓▓▓██████████████████       
  278.           ███████▓██████████You are scanning
  279.           Border-▓███████\███right in this█
  280.           ███████▓████████\---box██████████
  281.           █████████████████████████████████
  282.           █████████████████████████████████
  283.           █████████████████████████████████
  284.  
  285. Now tape the surface down with masking tape!!!
  286. Also place acetate over it and tape it **firmly**!!
  287.                     Tape
  288.                     ░░
  289.           ████████████████░░███████████████
  290.           █████████████████████████████████
  291. Tape\     █████████████████████████████████
  292.         ░░░░░█Your Page in color to████████
  293.           ████████████scan████████████████░░░░
  294.           ███████▓▓▓▓▓▓▓▓██████████████████       
  295.           ███████▓██████████You are scanning
  296.           Border-▓███████\███right in this█
  297.           ███████▓████████\---box██████████
  298.           █████████████████████████████████
  299.           █████████████████████████████████
  300.           ████████████████░░███████████████
  301.                     ░░
  302.  
  303. Now place scanner's metal guide over the right place and tape: 
  304. (Also place any guide blocks in place)
  305.  
  306.                     Tape
  307.                     ░░
  308.           ███░░░██████████░░███████████████
  309.           ████ │███████████████████████████
  310. Tape\     ████ │███████████████████████████
  311.         ░░░░░█ │ur Page in color to████████
  312.           ████ │████░░scan████████████████░░░░
  313.           ████ │█▓▓▓░░▓▓▓██████████████████       
  314.       Metal Guide-│░░███████You are scanning
  315.           Bord │-▓███████\███right in this█
  316.           ████ │█▓████████\---box██████████
  317.           ████ │███████████████████████████
  318.           ████ │███████████████████████████
  319.           ███░░░██████████░░███████████████
  320.                     ░░
  321.  
  322. Scan without the filter with the light..dark switch the lightest. You
  323. may want to bring in external light. Use your scanning utility to cut
  324. off the border at the exact boundary line (THERE MUST NOT BE ANY SKEW
  325. AND YOU SHOULD SCAN IN SOME OF THE BORDER. ALL THREE IMAGES MUST LINE
  326. UP EXACTLY, SO USE THE END OF THE BORDER AS A REFERENCE POINT.). Then
  327. cut off the bottom so the image is EXACTLY 640X480 pixels. Save the
  328. image as a B/W PCX file (1 plane). To aid you, you should use names
  329. like FileW.PCX, FileG.PCX, FileR.PCX, and FileB.PCX so you get the
  330. right planes. I SAY AGAIN: MAKE SURE THAT THE IMAGES ARE 640X480!!!
  331.  
  332. It IS hard to do the first few times. Eventually, in another version
  333. of this program, I will make it easier to align the planes.
  334.  
  335. Now put on the 3 other filters and scan and save. 
  336. You can view the 4 files and check that they would be aligned.
  337. If you don't have a PCX viewing utility like the public domain
  338. "PICEM," you should probably get one.
  339.  
  340.  
  341. *******Photo-Copy Method:
  342.  
  343. For this, you need a photocopier. You need to obtain a few small pieces
  344. of cellophane for red, green and blue. By the way, read the above method
  345. so I don't have to explain some of the last things again. You will have
  346. to play around with the brightness levels on the machine, but you should
  347. set them up as high as possible to start out. Also, get the lightest 
  348. colored cellophane as possible. Draw a border at the top as a reference
  349. point. Place the cellophane (or other filter, such as colored plastic
  350. wrap) down on the copier and then place the item to scan in color on top.
  351. Do this with all three filters, noting the brightness level required by
  352. each one. If your scanner uses a color of light besides white light, you
  353. may also want to do the fourth (intensity plane) scan on the copier also.
  354.  
  355. After the photo-copying, you simply scan the images in LINE-ART mode, and
  356. then you use your scan utility to cut the image to the reference point.
  357. You may have problems if you can't see it, so approximate the cut and also
  358. save the image un-cut in case you need to re-cut it. Now you have your
  359. four images
  360.  
  361.  
  362. *********All Processes:
  363.  
  364.  
  365. Now you have to run ColScan.EXE. The syntax is :
  366.  
  367. ColScan WhiteFile RedFile GreenFile BlueFile (ResultFile)
  368.  
  369. I said above that you need a VGA capture program. If you have Frieze,
  370. ColScan can automatically activate it by typing in the Result file.
  371. You should make a batch file if you want to use Frieze:
  372.  
  373. ColScn.Bat:
  374. Frieze EpsonFx p1 0010 1cnq 640 480 4
  375. Rem Load Frieze for Epson Fx printer (mine)
  376. Colscan %1W %1R %1G %1B %12.PCX
  377. Rem Use endings of W, R, G, and B. Result is 2
  378. Frieze
  379. Rem Unload Frieze
  380.  
  381. Note: The input files don't need the extension; however, if you use
  382. the built-in support for Frieze, you must have the extension.
  383. If you would prefer to use another Capture utility like VGACAP, 
  384. exclude the Result File Parameter. Then Colscan will give you 
  385. 7 seconds to activate your capture utility. The reaon for this is that
  386. I could not properly implement the save rountine. You may still want to
  387. use a batch file like:
  388.  
  389. ColScn2.Bat:
  390. VGACap
  391. Rem Load Capture utility
  392. Colscan %1W %1R %1G %1B %1.PCX
  393. Rem Use endings of W, R, G, and B. Result is regular name
  394.  
  395. Make sure to activate the capture utility. Here are some valid command
  396. line options:
  397.  
  398. COLSCAN TESTW TESTR TESTG TESTB TESTRES.PCX 
  399.      (Use Frieze to save as TestRes.PCX)
  400.  
  401. COLSCAN TESTW.PCX TESTR.PCX TESTG.PCX TESTB.PCX TESTRES.PCX
  402.      (Use extensions anyway)
  403.  
  404. COLSCAN TESTW TESTR TESTG TESTB
  405.      (Use own capture utility)
  406.  
  407. The program will display all four planes in monochrome, combine
  408. them, and save it. If any files besides VGA will cause unpredictable
  409. results, and if there are any errors, the program will halt.
  410. If you want to scan for Super VGA, you may want to try splitting
  411. up the image. If you want to scan for EGA, you way want to put the
  412. image together and then cut out the desired part. I know the explicit
  413. 640X480X16 rule is rigid.
  414.  
  415. *****************************************************************
  416.  
  417.  
  418. Jeremy Lilley ("The Author") makes no warranties about the usability
  419. of this program on The User's computer equipment. At no time shall
  420. the author liable for any claims, liability, or damages. This program
  421. was checked by the author to be free from "Viruses" and tested to
  422. work as shown above. The User must follow the above instructions when
  423. using the program. However, all warranties are disclaimed, expressed
  424. or implied, including but not limited to, any implied warranty of 
  425. merchantability of fitness for a particular purpose.
  426.  
  427.  
  428. ******************Registration**********************
  429.  
  430. You may decide that this is too much trouble and just delete this.
  431. However, if you want to be able to scan in 16 colors, you should
  432. register and use this program. Plus you get incentives for sharing
  433. this program and for registering.
  434.  
  435. First of all, I believe people don't like to be harassed by INSIPID
  436. BEG SCREENS with MUSIC and ANIMATIONS on programs; people don't like 
  437. being told that if they don't send in $100 to an author then they 
  438. won't have a hard drive left. I am taking a different approach. The 
  439. registration price is $10 normally and $5 if you can prove that you've 
  440. uploaded this program to a BBS where it is not already there. To prove 
  441. this, give me the NAME, TELEPHONE NUMBER, and LOCATION of the BBS. 
  442. Also include a screen dump of right after you downloaded the files. 
  443. You can either select your comm program's Toggle Printer option or 
  444. press Shift-PrtScr.
  445.  
  446. Most BBSes will tell you the name of the files you've uploaded and
  447. will show the verification of the files. That is what I want. NOTE:
  448. WHEN YOU SHARE THIS PROGRAM, MAKE SURE TO INCLUDE ALL OF THE FILES.
  449. The documentation and program are the same for both registered and
  450. unregistered versions. 
  451.  
  452. By registering, you will:
  453.  
  454.      ■ Get rid of that nasty "Please Register" message
  455.  
  456.      ■ Get a clearer conscience (Unless you're one of those
  457.        people that uses DEBUG to remove copyright messages,
  458.        which is impossible anyway with this program because
  459.        it is compressed with but not recognizable to LZEXE)
  460.  
  461.      ■ Help bring more updates which will make the process
  462.        of scanning in 16 colors MUCH easier for YOU and 
  463.        other users
  464.  
  465.      ■ Be eligible for mail support from the author to help
  466.        aid your scanning
  467.      
  468.      ■ Get some tips on scanning with ColScan
  469.  
  470. All of this for $5 if you pass this along (and get some DL credits)
  471. or $10 normally.
  472.  
  473. The order form is Order.PRN. To print it, use the COPY command:
  474.  
  475. Copy Order.Prn Prn
  476.  
  477. Although the address is on the order form, it is:
  478.  
  479. Jeremy Lilley
  480. 27816 Radfall Ct.
  481. Santa Clarita, CA 91350
  482.  
  483. ******************** A Little More..........********************
  484.  
  485. Now I want to make a few last remarks. I first made up this program
  486. about 1 month after I first got my MarsTek M-105+ (R) hand scanner.
  487. A few weeks later, I wanted to find some way to scan things in color
  488. with my scanner. Then it dawned on me: I could use a few filters and
  489. combine them. It took a few weeks to make some basic PCX routines in
  490. Turbo Pascal v5.5. I am a high school student right now at Saugus
  491. High School with a 4.xx GPA. Right now, I work on an XT clone with
  492. VGA (It IS possible to put VGA cards on XT's - as long as you wait a
  493. bit longer for screen writes) . Help a student about to go through
  494. college: Register this program!!! I hope you find use for this program 
  495. like I did.
  496. GOOD LUCK SCANNING IN 16 COLORS!!!
  497.  
  498. REMEMBER, By registering, you will:
  499.  
  500.  
  501.      ■ Get rid of that nasty "Please Register" message
  502.  
  503.      ■ Get a clearer conscience (Unless you're one of those
  504.        people that uses DEBUG to remove copyright messages)
  505.  
  506.      ■ Help bring more updates which will make the process
  507.        of scanning in 16 colors MUCH easier for YOU and 
  508.        other users
  509.  
  510.      ■ Be eligible for mail support from the author to help
  511.        aid your scanning
  512.      
  513.      ■ Get some tips on scanning with ColScan
  514.  
  515.      ■ Et Cetera, Et Cetera, Et Cetera... Good Scanning!