Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>pcx_header()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PCX_HEADER()
   Fills an array with information about a PCX file.

   Syntax
         PCX_HEADER(cFileName,aPCXHeader[12] [,aColorMap[48]])

   Arguments
         cFileName   Name of PCX image on disk.
         aPCXHeader  Array that collects PCX header information:

                         +---------------------------+
                         |  #  |Description          |
                         ------+---------------------|
                         | [1] |Manufacturer number  |
                         | [2] |Version              |
                         | [3] |Encoding             |
                         | [4] |Bits-per-pixel       |
                         | [5] |X1                   |
                         | [6] |Y1                   |
                         | [7] |X2                   |
                         | [8] |Y2                   |
                         | [9] |Horizontal resolution|
                         | [10]|Vertical resolution  |
                         | [11]|Number of planes     |
                         | [12]|Bytes-per-line       |
                         +---------------------------+
         OPTIONAL PARAMETERS
         aColorMap[48]  Array that collects the color map information.

   Returns
         None

   Description
         PCX_HEADER() will fill an array with a length of 12 elements with
         information about a specific PCX image on disk.

         PCX_HEADER() will fill an array of color information if the aColorMap
         argument is specified. The array must be declared with 48 elements.
         Each set of three elements specifies the red, green, and blue
         intensities for each of 16 colors. The intensities range from 0 to
         255, and colors range from 0 to 15.

   Examples

               DECLARE PCXARRAY[12]
               PCX_HEADER("TEST.PCX",PCXARRAY)

See Also: FPCX_PUT() FPCX_ROT() FPCX_SCALE() PCX_TO_PIC()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson