home *** CD-ROM | disk | FTP | other *** search
- echo off
- if s==%3s goto HELP
- cls
- echo ╔═════════════════════════════════════════════════════════════╗
- echo ║ MAKEGRAY ║
- echo ║ ║
- echo ║ Automatic Processing of INSET PIX file to Resized and ║
- echo ║ Grayscaled B&W .PCX file ║
- echo ╚═════════════════════════════════════════════════════════════╝
- if not exist %1.pix goto ERR_FIND
- echo [%1]
- autoin odljet;b1miei%2;0;%3;^^^
- if errorlevel 1 goto IN_ERROR
- echo Gray/Size Processing ...
- autoin omf%1.hpc;pgos^^^
- echo Now converting to PCX
- convert %1.hpc *.PCX
- if errorlevel 1 goto ERR_CVT
- del %1.hpc
- dir %1.PCX
- goto END
- :IN_ERROR
- echo MAKEGRAY processing Error!
- echo InSet not loaded
- goto END
- :ERR_CVT
- echo MAKEGRAY processing Error!
- echo Possible problems:
- echo GNT file not set to ASCII in InSet SETUP.COM
- echo LJET.PRD file not in InSet directory
- echo Path Name to file not used (or InSet PIX directory not NONE)
- echo insufficient disk space
- pause
- goto Help
- :ERR_FIND
- Echo Can't find %1.PIX
- :HELP
- echo ╔═════════════════════════════════════════════════════════════╗
- echo ║ MAKEGRAY ║
- echo ║ Automatic Processing of INSET PIX file to Resized and ║
- echo ║ Grayscaled B&W .PCX file ║
- echo ║ ║
- echo ║ MAKEGRAY infile width height ║
- echo ║ infile = Path and Name of inset PIX file ║
- echo ║ width = Desired width of output image (300dpi) ║
- echo ║ height = Desired height of output image (300dpi) ║
- echo ║ Example: ║
- echo ║ To Convert C:\TEST.PIX to a grayscaled PCX file ║
- echo ║ for inclusion into a 5 inch wide by 3 inch tall ║
- echo ║ Ventura frame ║
- echo ║ ║
- echo ║ MAKEGRAY c:\TEST 5 3 ║
- echo ║ Requirements: ║
- echo ║ o InSet must be loaded in memory with the GNT file ║
- echo ║ set to ASCII in SETUP.COM and the LJET.PRD file ║
- echo ║ in the InSet directory ║
- echo ║ o AUTOIN.COM and CONVERT.EXE must be in the directory║
- echo ║ or path when you run MAKEGRAY ║
- echo ╚═════════════════════════════════════════════════════════════╝
- :END