home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCGetPageSize.z / SCGetPageSize
Encoding:
Text File  |  2002-10-03  |  3.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSCCCCGGGGeeeettttPPPPaaaaggggeeeeSSSSiiiizzzzeeee((((3333))))                 IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                  SSSSCCCCGGGGeeeettttPPPPaaaaggggeeeeSSSSiiiizzzzeeee((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SCGetPageSize - determine the scannable area of a scanning device
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccaaaannnnnnnneeeerrrr....hhhh>>>>
  14.  
  15.      iiiinnnntttt SSSSCCCCGGGGeeeettttPPPPaaaaggggeeeeSSSSiiiizzzzeeee((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss,,,, iiiinnnntttt mmmmeeeettttrrrriiiicccc,,,, ffffllllooooaaaatttt ****xxxx,,,, ffffllllooooaaaatttt ****yyyy,,,,
  16.                        ffffllllooooaaaatttt ****wwwwiiiiddddtttthhhh,,,, ffffllllooooaaaatttt ****hhhheeeeiiiigggghhhhtttt))));;;;
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _S_C_G_e_t_P_a_g_e_S_i_z_e queries a scanner for the size of the scannable area.  _s
  20.      specifies a connection to a scanner previously obtained from a call to
  21.      _S_C_O_p_e_n(3), _S_C_O_p_e_n_F_i_l_e(3), or _S_C_O_p_e_n_S_c_r_e_e_n(3).  _m_e_t_r_i_c is used to specify
  22.      whether the results are required to be in inches (SSSSCCCC____IIIINNNNCCCCHHHHEEEESSSS) or
  23.      centimeters (SSSSCCCC____CCCCEEEENNNNTTTTIIIIMMMM).  _S_C_G_e_t_P_a_g_e_S_i_z_e returns the x and y coordinates
  24.      of the upper left hand corner of the scannable area in _x and _y, and the
  25.      width and height of the scannable area in _w_i_d_t_h and _h_e_i_g_h_t.
  26.  
  27. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  28.      _S_C_G_e_t_P_a_g_e_S_i_z_e returns 0 if successful.  In the event of an error,
  29.      _S_C_G_e_t_P_a_g_e_S_i_z_e returns -1 and sets the global variable _S_C_e_r_r_n_o to indicate
  30.      the reason for failure.
  31.  
  32. EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
  33.      _S_C_G_e_t_P_a_g_e_S_i_z_e will fail under the following circumstances.
  34.  
  35.      SCEBADMETRIC             Unsupported metric
  36.  
  37.      SCECOMM                  Error communicating with scanner driver
  38.  
  39. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  40.      _l_i_b_s_c_a_n(3), _S_C_O_p_e_n(3), _S_C_S_e_t_u_p(3).
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.