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>hps_open()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HPS_OPEN()
   Opens a scanner buffer.

   Syntax
         nStatus = HPS_OPEN(nType,nRes)

   Arguments
         nType       Sets or returns the type or setting of the scanner.
                        ASC('L') - low setting
                        ASC('R') - returns the current setting
                        ASC('H') - high setting
         nRes        Sets the resolution you will work in.
                        0 - pixels
                        1 - decipoints (1/720th of an inch)

   Returns
         nStatus     Scanner status.
               +----------------------------------------------+
               |nStatus|Description       |Type               |
               |-------+------------------+-------------------|
               |    0  |OKAY              |No Error           |
               --------+------------------+-------------------|
               |    1  |NO_ACCESS         |Communication Error|
               |    2  |BAD_ACCESS        |                   |
               |    3  |BAD_COMMAND       |                   |
               |    4  |BAD_RESPONSE      |                   |
               |    5  |NULL_RESPONSE     |                   |
               --------+------------------+-------------------|
               |    6  |BAD_CMD_FORMAT    |Scanner Error      |
               |    7  |ILLEGAL_CMD       |                   |
               |    8  |ILLEGAL_WND       |                   |
               |    9  |PARAM_ERR         |                   |
               |   10  |SCALE_ERR         |                   |
               |   11  |DITHER_ERR        |                   |
               |   12  |TONE_MAP_ERR      |                   |
               |   13  |LAMP_ERR          |                   |
               |   14  |ADF_JAM           |                   |
               |   15  |HOME_MISSING      |                   |
               |   16  |SCAN_ERR          |                   |
               |   17  |HPS_FILE_OPEN_ERR |                   |
               |   18  |HPS_FILE_WRITE_ERR|                   |
               |   19  |OUT_OF_MEM_ERR    |                   |
               +----------------------------------------------+

   Description
      HPS_OPEN() allocates a buffer to hold the scanned image.

See Also: HPS_CLOSE()

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