MS-DOS Batch File for Viewing
Large Document Scans
in SuperVGA Modes



VIEWSVGA.BAT


@ECHO OFF
ECHO ------------------------------------------------------------
ECHO "This is a simple 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 exhaustive overview of virtual, display capabilities"
ECHO "at various graphic modes, with various DPI documents, and different"
ECHO "display speeds, with both full page and invoice sizes included."
ECHO "PAGE = 8.5" x 11", INVOICE = 8.5" x 5.5" at 150, 200, 300 DPI
pause
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 "for display of ALL graphic modes in this test."
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.  SCROLL & PAN are fastest at 640x480, slower at higher rez."
ECHO "SUN150.PCX scanned at 150 DPI, filesize - 95,840K
ECHO "Virtual Size - 1050x1364 pixels 
ECHO "SUN200.PCX scanned at 200 DPI, filesize - 149,886K
ECHO "Virtual Size - 1400x1819 pixels
ECHO "SUN300.PCX scanned at 300 DPI, filesize - 303,072K
ECHO "Virtual Size - 2100x2729 pixels
ECHO ------------------------------------------------------------
pause
ECHO ------------------------------------------------------------
ECHO "Use the GREY PLUS & MINUS KEYS on your AT keyboard to ZOOM."
ECHO ------------------------------------------------------------
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 ------------------------------------------------------------
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 ------------------------------------------------------------
pause
ECHO "We'll display in SuperVGA at 800x600 with method #1...
ECHO "With this method, while scrolling/panning, there will be 
ECHO "momentary pauses while the de-compressor unpacks the bits...
ECHO ------------------------------------------------------------
pause
viewpcx sund200.pcx 0 0 799 599 800 600
textmode
viewpcx sunb200.pcx 0 0 550 599 800 600
textmode
viewpcx sun200.pcx 0 0 550 599 800 600
textmode
ECHO ------------------------------------------------------------
ECHO "Then, we display in SuperVGA at 1024x768 also with method #1...
ECHO "This method works with 512K or 1 Meg video memory."
ECHO ------------------------------------------------------------
pause
viewpcx SUNd200.pcx 0 0 1023 767 1024 768
textmode
viewpcx SUNb200.pcx 0 0 768 767 1024 768
textmode
viewpcx SUN200.pcx 0 0 768 767 1024 768
textmode
ECHO ------------------------------------------------------------
ECHO "Now, we will use another method that should be
ECHO "More to your liking: method #2 in SuperVGA at 1024x768
ECHO "But forced to a different SVHA graphic mode,
ECHO "requiring 1 Meg video memory.
ECHO ------------------------------------------------------------
pause
setvmode 56
viewpcx /noblank SUNd200.pcx 0 0 1023 767 1024 768
textmode
viewpcx /noblank SUNb200.pcx 0 0 768 767 1024 768
textmode
viewpcx /noblank SUN200.pcx 0 0 768 767 1024 768
textmode
ECHO ------------------------------------------------------------
ECHO "Again, we will use method #2 in SuperVGa at 800x600
ECHO "But forced to a different SVGA graphic mode...
ECHO "requiring 1 Meg video memory.
ECHO ------------------------------------------------------------
pause
setvmode 48
viewpcx /noblank SUNd200.pcx 0 0 799 599 800 600
textmode
viewpcx /noblank SUNb200.pcx 0 0 600 599 800 600
textmode
viewpcx /noblank SUN200.pcx 0 0 600 599 800 600
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






Return to SunShow Main