MS-DOS Batch File for Viewing Large Document Scans
The following is a "simple-little-batch" file illustrating document viewing from the DOS prompt, that is available on our BBS in the ZIPfile, DOCBAT.ZIP. In addition, the sample images are also available, as well as several other examples that may prove useful. Please call for an account on our private BBS. Essentially, the same concepts used in VIEWDOC.BAT, are used with Clipper and SunShow function libraries.
@ECHO OFF ECHO ------------------------------------------------------------ ECHO "This is another demonstration of Sun Country Software's ECHO "PC virtual document imaging with scanned documents..." ECHO ------------------------------------------------------------ ECHO "PC Requirements: 386/486 with 8 Meg memory, LIM 4.0 EMS" ECHO "Memory Support required, fast hard disk, 1 Meg SVGA video card." ECHO "This is an overview of virtual, image data manipulation." ECHO "These methods show some of Sun Country's proprietary methods." ECHO "Sun Country can manipulate image data for better effects." ECHO "SCAN1.PCX is a 1275x1650 half-page scan in 16 greyscale. ECHO "SCAN1.PCX - 655,929K filesize w/standard PCX RLE Compression. ECHO "SCAN1.GIF is a 1275x1650 half-page scan made from SCAN1.PCX. ECHO "SCAN1.gif - 164,543 filesize w/ 4 greyscale w/ LZW compression." ECHO "Noise removal was not performed, but could provide additional ECHO "benefits - slightly, smaller filesize & sharper image. ECHO ------------------------------------------------------------ ECHO "You must install the Sun Country SVGA drivers for" ECHO "the brand of SVGA installed on your PC for this test." ECHO "Display of 1024x768 requires 1 Meg video memory" ECHO ------------------------------------------------------------ pause ECHO ------------------------------------------------------------ ECHO "Please wait for the image to load through the" ECHO "EMS Page Frame as a virtual image of large virtual ECHO "dimensions, before pressing any keystrokes." ECHO "ZOOM, SCROLL, & PAN will seem erratic at times. There will ECHO "be short pauses or lags at times, while the de-compressor packs" ECHO "bits on slower PCs. ECHO ------------------------------------------------------------ pause ECHO ------------------------------------------------------------ ECHO "Use the GREY PLUS & MINUS KEYS on your AT keyboard to ZOOM." ECHO "Use the ARROW keys to scroll and pan, once ZOOMed-in a bit. ECHO "SHIFT + ARROW keys (cursor control keys) to BIG scroll/pan." ECHO "There is no SHIFT + ZOOM key (BIG ZOOM) at the moment." ECHO "There will be a slight delay after pressing the PLUS key ECHO "just once when ZOOMing. To ZOOM larger amounts, ECHO "press the SCROLL key 2- 4 times rapidly in succession ECHO "to avoid the de-compressor delay caused by unpacking the bits.. ECHO ------------------------------------------------------------ ECHO "First, the large 16 greyscale PCX document." ECHO ------------------------------------------------------------ pause viewpcx SCAN1.PCX 0 0 1023 767 1024 768 textmode ECHO "Second, a 4 greyscale GIF version of the same document." ECHO ------------------------------------------------------------ pause setvmode 56 viewgif /noblank SCAN1.gif 0 0 1023 767 1024 768 textmode ECHO ------------------------------------------------------------ ECHO "That's All, Folks! Visualize your Data with Sun Country." ECHO ------------------------------------------------------------

Return to Technical Support, Notes, Tips, Tricks
and Programming Information

Return to SunShow Professional Page