home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / sixel / pcx2six.doc < prev    next >
Text File  |  1996-12-10  |  16KB  |  469 lines

  1. PCX2SIX
  2. SIXEL Graphics Utility
  3. Guide 1.00
  4.  
  5. PCX2SIX
  6. conversion program
  7. SIXEL Graphics Utility
  8. Guide
  9.  
  10.   Author(s)   Date      Rev   Page  Comments
  11.   J.G.Zvonar  12/4/95   1.00  all   Original Version
  12.  
  13.   John G. Zvonar
  14.   10309 Trout Cove
  15.   Austin, Tx 78749
  16.  
  17.   EMAIL JohnG.Zvonar@AMD.COM
  18.  
  19.  
  20. Table of Contents
  21.  
  22. 1. Introduction. . . . . . . . . . . . . . . . . . . . . . . .  1
  23.  
  24. 2. Scope . . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  25.  
  26. 4. Conventions . . . . . . . . . . . . . . . . . . . . . . . .  4
  27.  
  28. 5. Overview. . . . . . . . . . . . . . . . . . . . . . . . . .  5
  29.  
  30. 6. Using PCX2SIX . . . . . . . . . . . . . . . . . . . . . . .  7
  31.  
  32. 7. Palette file format . . . . . . . . . . . . . . . . . . .   11
  33.  
  34. 8. Limitations . . . . . . . . . . . . . . . . . . . . . . .   12
  35.  
  36. 9. Troubleshooting . . . . . . . . . . . . . . . . . . . . .   13
  37.  
  38.  
  39. 1. Introduction
  40.  
  41.     The ability to display pictures on the VAX systems both inside
  42.     of specifications and as stand alone reference documents can
  43.     aid in the daily job performance.  This utility provides the
  44.     ability to put any PC picture into native VAX/VMS SIXEL format. 
  45.  
  46.   1.1 Major Components 
  47.  
  48.     1.1.1 VAX/VMS 
  49.  
  50.     1.1.2 PCX2SIX.EXE
  51.  
  52.     1.1.3 Graphics capable terminal or emulator
  53.  
  54.   1.2 Copyrights & Trademarks
  55.  
  56.     1.2.1 SIXEL - Digital Equipment Corporation
  57.  
  58.     1.2.2 Windows - Microsoft Corporation
  59.  
  60.     1.2.3 PAINT, PBRUSH, PCX - ZSoft Corporation
  61.  
  62.     1.2.4 Kermit - Columbia University 2. Scope
  63.  
  64.     This document will cover the use of the PCX2SIX utility to 
  65.     create pictures in SIXEL format for specifications and stand
  66.     alone pictures.  The features provided will be described as
  67.     will the few limitations of the conversion utility.  
  68.  
  69.   2.1 Intended Audience
  70.  
  71.     This user guide is written assuming that the reader has at
  72.     least a basic familiarity with DOS, and has a need to display
  73.     SIXEL graphics perhaps on a VAX/VMS system.
  74.  
  75.   2.2 What is not covered
  76.  
  77.     This document does not cover information related to PCX or
  78.     SIXEL or the internal program code.
  79.  
  80.     This document will not cover the details of creating the
  81.     graphic that is to be displayed, other than how to get it into
  82.     the correct file format.
  83.  
  84.     Limited coverage of how to get the file from PC platforms to
  85.     the VAX/VMS system will be done.
  86.  
  87.     No coverage of Windows or DOS is attempted.
  88.  
  89.   2.3 General Information
  90.  
  91.     2.3.1 The author has no association with ZSoft Corporation.
  92.  
  93.     2.3.2 The conversion utility is supplied as is. FREE of charge.
  94.  
  95.     2.3.3 The utility is for unlimited, unrestricted use except as
  96.           follows.  The utility may not be bundled with other "FOR
  97.           SALE" software without prior written permission from John
  98.           G. Zvonar, otherwise the utility may be given away for
  99.           FREE with all documentation.
  100.  
  101.     2.3.4 There is no warranty, period!
  102.  
  103.     2.3.5 The SIXEL output has been tested on TRUE VT340 terminals
  104.           and various terminal emulators.
  105.  
  106.  
  107. 3. References
  108.  
  109.   3.1 Additional Documents Required
  110.  
  111.       No additional documents are needed for using the PCX2SIX
  112.       utility to create pictures for use in a SIXEL graphics
  113.       environment.
  114.  
  115.  
  116. 4. Conventions
  117.  
  118.   4.1 Items of special interest are in bold characters.
  119.  
  120.   4.2 User typed input is in underlined italics.
  121.  
  122.   4.3 Single stroke key presses are identified as press <key>.  The
  123.       keys <enter> and <ret> or <return> are used interchangeably.
  124.  
  125.  
  126. 5. Overview
  127.  
  128.   Graphics provided as reference documents or as part of the
  129.   operating specification provide significant benefit over just
  130.   having words for descriptions, or using character based pictures. 
  131.   This utility allows the viewing of PC based pictures on the
  132.   VAX/VMS system using the capability of terminals supporting SIXEL
  133.   graphics protocol.
  134.  
  135.  
  136.   5.1 SIXEL Graphics
  137.  
  138.     The DEC Terminals which support SIXEL graphics information can
  139.     display pictures with VGA to Super VGA (PC based measure)
  140.     quality levels.  The SIXEL protocol is a bitmap based graphics
  141.     capability supplied by DEC integral to several terminals in VT
  142.     terminal product line.  Many VT terminal emulators also provide
  143.     full, or partial, SIXEL graphics support, most in at least 16
  144.     colors.  
  145.  
  146.   5.2 PCX Format
  147.  
  148.     5.2.1 The ZSoft PCX format was chosen was chosen to be the
  149.           'common format' for the utility.  This was chosen due to
  150.           the wide variety of applications on many different
  151.           platforms that support and generate PCX files.  PCX files
  152.           are bitmap files.
  153.  
  154.     5.2.2 Any application that can create PCX files can generate a
  155.           file suitable for the PCX2SIX utility.  Color is
  156.           supported for up to 256 colors.  Note though that most
  157.           terminals only support the first 16 colors.
  158.  
  159.     5.2.3 Almost all PC Windows applications can output to this
  160.           format at least through the WINDOWS clipboard capture.
  161.  
  162.     5.2.4 PAINT supplied with Windows can put any clipboard image
  163.           into the PCX format.
  164.  
  165.     5.2.5 The final SIXEL files can still be used to create hard
  166.           copy output by printing them to an appropriate network
  167.           SIXEL printer once they are on the VAX/VMS system.
  168.  
  169.     5.2.6 The PCX2SIX utility will not add or delete pixels.  If
  170.           the number of X direction pixels was 640 then the number
  171.           of X direction SIXELS will also be 640.  See section 8.2
  172.           for more information. 5.3General procedure outline 
  173.  
  174.     5.3.1 Select an application package for graphics generation on
  175.           your platform of choice running your operating system of
  176.           choice.
  177.  
  178.     5.3.2 Create the drawing.
  179.  
  180.     5.3.3 If needed capture the picture to the clipboard and paste
  181.           it into PAINT.  Save the image as a PCX file.
  182.  
  183.     5.3.4 Convert the file using the PCX2SIX utility.
  184.  
  185.     5.3.5 Upload/Transfer the SIXEL file to the VAX/VMS system.
  186.  
  187.     5.3.6 Use the type command to display the picture and determine
  188.           if the appearance is what was desired.  With MS Kermit
  189.           the REPLAY command can also be used to display the SIXEL
  190.           graphic without transferring the graphic to a VMS host
  191.           system.
  192.  
  193.     5.3.7 Use the PCX2SIX command line switches as needed to change
  194.           the picture appearance.
  195.  
  196.  
  197. 6. Using PCX2SIX 
  198.  
  199.   This section describes basic operation of the PCX2SIX conversion
  200.   utility.  This is a DOS PC based tool.  No special PC
  201.   requirements are needed.
  202.  
  203.   6.1 Hardware: IBM Compatible PC
  204.  
  205.     6.1.1 The utility will create the SIXEL file on the hard disk. 
  206.           There must be enough free disk space for the output
  207.           files.
  208.  
  209.     6.1.2 There must be at least three free file spaces available
  210.           from the FILES & BUFFERS settings.  This is usually not
  211.           a problem.
  212.  
  213.     6.1.3 The utility should run in as little as 64K of ram.
  214.  
  215.   6.2  Software: PCX2SIX.EXE
  216.  
  217.     6.2.1 The only software required for the conversion is the
  218.           PCX2SIX utility itself.
  219.  
  220.     6.2.2 Create a directory for the utility then use a copy
  221.           command to copy the executable from the distribution disk
  222.           onto the hard disk.
  223.  
  224.   6.3. Running PCX2SIX
  225.  
  226.     6.3.1 The conversion utility is started by typing pcx2six
  227.           followed by the full filename and optional extension. For
  228.           example:
  229.  
  230.             C:>pcx2six test.pcx   <ret>
  231.  
  232.     6.3.2 Note that unless otherwise indicated the file must reside
  233.           in the current directory. Optionally a disk drive and
  234.           path may precede the full filename and optional
  235.           extension.  For example:
  236.  
  237.             C:>pcx2six D:\files\test.pcx   <ret>
  238.  
  239.           In this case the output file test.six will also reside in
  240.           the directory D:\files.
  241.  
  242.     6.3.3 The file is now transferred to the VAX using any number
  243.           of utilities, or displayed in Kermit v 3.14 using the
  244.           REPLAY command at the prompt.  The file is an ASCII file,
  245.           do not use a binary file transfer protocol.  The file may
  246.           be viewed on the VAX by a simple TYPE command.
  247.  
  248.  
  249.   6.4 Optional Command line inputs
  250.  
  251.       There are numerous optional command line switches to allow
  252.       minor customizing and correction of the bitmap images.
  253.  
  254.     6.4.1 The command line input will accept a second filename
  255.           parameter.  This filename parameter indicates to the
  256.           utility that the output is to be directed into a file
  257.           with a user specified file name.  The parameter is the
  258.           filename to create.
  259.  
  260.     6.4.2 When invoked as C:>pcx2six test.pcx capture.txt  <ret>
  261.           the file capture.txt will be created and will contain all
  262.           of the SIXEL commands needed to draw the picture.
  263.  
  264.     6.4.3 After transfer the SIXEL file may be viewed by using the
  265.           VAX/VMS type command, for example $type capture.txt 
  266.           <ret>. Kermit 3.14 can also be used to view the file, at
  267.           the prompt >replay capture.txt
  268.  
  269.     6.4.4 This SIXEL file is also suitable for printing on any
  270.           SIXEL compatible printer.
  271.  
  272.   6.5 The Palette Features
  273.  
  274.     A feature of the utility is the ability to adjust the palette. 
  275.     Most of the command line switches are related to palette
  276.     manipulation.  The SIXEL protocol supports up to 256 colors,
  277.     however most emulators only support 16.  Best results have been
  278.     obtained by keeping to 16 or less colors.
  279.  
  280.     6.5.1 The /I Switch
  281.  
  282.           The /I switch will instruct the utility to Ignore any
  283.           palette information.  This means that it will select the
  284.           colors based on id number but will make no attempt to
  285.           adjust the RGB value of the id number.  In this case the
  286.           terminal palette colors will be used for display, even if
  287.           the colors have been changed by someone or something. 
  288.           Note that under normal condition the terminal colors map
  289.           well to the standard PC colors.
  290.  
  291.     6.5.2 The /P Switch
  292.  
  293.           The /P switch will instruct the utility to create and use
  294.           a default Palette.  The default palette will be identical
  295.           to the factory default 16 color palette on a VT340.
  296.  
  297.     6.5.3 The /R Switch
  298.  
  299.           The /R switch will instruct the utility to Read in and
  300.           use a palette file.  The palette file name must be the
  301.           same as the PCX file being processed but with the
  302.           extension of .PAL.  This feature allows fine tuning of
  303.           the individual palette values for the SIXEL output file. 
  304.           The palette file format is discussed later in this
  305.           document.
  306.  
  307.     6.5.4 The /W Switch
  308.  
  309.           The /W switch will instruct the utility to Write out the
  310.           palette information.  A file with the same name as the
  311.           PCX input file but with the extension of .PAL will be
  312.           created.  If the file already exists it will be
  313.           overwritten.  This output file is in the same format that
  314.           is needed for the /R switch.
  315.  
  316.     6.5.5 The /S Switch
  317.  
  318.           The default output disables SIXEL scrolling.  This is to
  319.           insure that the image does not roll off of the top of the
  320.           screen.  Using the /S switch will ENABLE SIXEL scrolling
  321.           if desired.
  322.  
  323.     6.5.6 The /M Switch
  324.  
  325.           The /M switch must be followed by a number between 0 and
  326.           15.  This number sets the color to be used for the
  327.           Monochrome image conversion.  The default if /M is not
  328.           used is color 7 (white).  The exact syntax would appear
  329.           as /M5 to use color 5 for the monochrome image.  Note
  330.           that this does not change the background color which will
  331.           remain at whatever the terminal has set into the palette
  332.           for color 0.
  333.  
  334.     6.5.7 The /B Switch
  335.  
  336.           On occasion it may be desirable to scale up or down the
  337.           palette values.  The /B allows the scaling without having
  338.           to modify a palette file.  The exact syntax would be
  339.           /B120 or /B90.  The scaling is performed relative to 100,
  340.           so /B120 will increase the palette numbers by
  341.           approximately 120/100, whereas /B90 would decrease the
  342.           palette values by about 90/100.  The maximum palette
  343.           value is 100.  The default /B value is 100.
  344.  
  345.     6.5.8 The /X and /Y Switches
  346.  
  347.           The two switches /X and /Y work together to set the pixel
  348.           aspect ratio.  The default values are 2 and 1 for X and
  349.           Y respectively.  These switches can be used to change
  350.           somewhat the size of the image.  The switches when used
  351.           would look like /X2 /Y1.
  352.  
  353.   6.6 Multiple command line switches may be used.  The only
  354.       restriction is to separate the switches requiring a numeric
  355.       input by a space.
  356.  
  357.     6.6.1 Good Example: C:>pcx2six input output /P/W/B110 /S
  358.  
  359.     6.6.2 Bad Example:  C:>pcx2six input output /P/B110/W/S
  360.  
  361.     6.6.3 Summary:  Switches /B, /M, /X, /Y must all be followed
  362.                     by a space.
  363.  
  364. 7. Palette file format 
  365.  
  366.   7.1 The palette file used by the utility is in ASCII.
  367.  
  368.   7.2 There is one line per color, and there must be either 16 or
  369.       256 lines or the palette file will be considered invalid.
  370.  
  371.   7.3 The color values are stored three to a line in Red Green Blue
  372.       format.
  373.  
  374.   7.4 Each RGB value is separated by a vertical bar character |.
  375.  
  376.   7.5 The file may be edited with any ASCII editor like NOTEPAD, or
  377.       DOS EDIT utility.
  378.  
  379.   7.6 An example file:
  380.  
  381. |0|0|0|
  382. |20|20|80|
  383. |80|13|13|
  384. |20|80|20|
  385. |80|20|80|
  386. |20|80|80|
  387. |80|20|20|
  388. |53|53|53|
  389. |26|26|26|
  390. |33|33|60|
  391. |60|26|26|
  392. |33|60|33|
  393. |60|33|60|
  394. |33|60|60|
  395. |60|60|33|
  396. |80|80|80|
  397.  
  398.   7.7 Each palette value can be from 0 to 100.
  399.  
  400.  
  401. 8. Limitations
  402.  
  403.   8.1 Colors -  Most terminals in use today only support 16
  404.                 colors. The utility supports 256 colors.  If the
  405.                 pictures are to be viewed by a wide audience use a
  406.                 maximum of 16 colors.
  407.  
  408.   8.2 Resolution -  The VT340 supports 800 x 480 pixels, across
  409.                     and down respectively.  The typical PC is 640
  410.                     x 480.  Aspect ratios will not be exact.  Some
  411.                     emulators will show a reduced size version
  412.                     that is the 640 x 480 within an 800 x 480
  413.                     emulated window, while others chose to show
  414.                     the 640 x 480 as the entire screen.  A true
  415.                     VT340 shows the PC picture as 640 x 480 within
  416.                     the 800 x 480 window.
  417.                     
  418.                     When creating the PCX file set the number of
  419.                     pixels desired, draw, then convert.  Also try
  420.                     using the /X /Y options for aspect ratios.
  421.  
  422.   8.3 VT330 - The VT330 is a monochrome terminal.  The terminal
  423.               will adjust the color information into 4 shades of
  424.               white.  Test color images on VT330 terminals.
  425.  
  426.   8.4 VT240 - The VT240 has less vertical pixels than the newer
  427.               graphics terminals, therefore part of the image will
  428.               not be on the screen.
  429.  
  430.   8.5 Speed - On a main frame system the drawing speed is limited
  431.               by the speed of the terminal connection.  The faster
  432.               the connection the faster the picture shows up.
  433.  
  434.  
  435. 9. Troubleshooting
  436.  
  437.     This section contains some common problems.
  438.  
  439.   9.1 Switch problems
  440.  
  441.     9.1.1 All command line switches must be in UPPER CASE.
  442.  
  443.     9.1.2 If the switch requires a number the number must be
  444.           followed by a space.
  445.  
  446.   9.2 Invisible Colors
  447.  
  448.     9.2.1 Try converting into 16 colors using PAINT or PBRUSH from
  449.           ZSoft Corporation.
  450.  
  451.     9.2.2 Try setting the palette colors manually using a .PAL
  452.           file.
  453.  
  454.   9.3 File Transfer VAX/VMX Buffer overflow
  455.  
  456.     9.3.1 Transfer the file to VAX using ASCII(text) protocol not
  457.           Binary.
  458.  
  459.   9.4 Blank Screen
  460.  
  461.     9.4.1 The terminal does not support graphics.  Switch to a
  462.           VT330 or VT340.
  463.  
  464.     9.4.2 If using an emulator check the documentation to verify
  465.           that it supports SIXEL GRAPHICS.  A VT320 for example
  466.           will not support SIXEL or ReGis graphics.
  467.  
  468. (End)
  469.