home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Web / Utilities / wwwcount-2.3 / combine / getfinfo.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-02  |  1.9 KB  |  82 lines

  1. /*
  2.  *  GetFrameInfo - initializes FrameInfo structure
  3.  *
  4.  *  RCS:
  5.  *      $Revision: 2.3 $
  6.  *      $Date: 1996/05/03 02:21:34 $
  7.  *
  8.  *  Security:
  9.  *      Unclassified
  10.  *
  11.  *  Description:
  12.  *      text
  13.  *
  14.  *  Input Parameters:
  15.  *      type    identifier  description
  16.  *
  17.  *      text
  18.  *
  19.  *  Output Parameters:
  20.  *      type    identifier  description
  21.  *
  22.  *      text
  23.  *
  24.  *  Return Values:
  25.  *      value   description
  26.  *
  27.  *  Side Effects:
  28.  *      text
  29.  *
  30.  *  Limitations and Comments:
  31.  *      text
  32.  *
  33.  *  Development History:
  34.  *      who                 when        why
  35.  *      muquit@semcor.com   30-Aug-95   first cut
  36.  */
  37.  
  38. #include "combine.h"
  39.  
  40. void GetFrameInfo (im_width, im_height,frame_info)
  41. unsigned int
  42.     im_width,
  43.     im_height;
  44. FrameInfo
  45.     *frame_info;
  46. {
  47.     RGB
  48.         color,
  49.         matte_color;
  50.     frame_info->width=2;
  51.     frame_info->height=2;
  52.     frame_info->outer_bevel=(frame_info->width >> 2)+1;
  53.     frame_info->inner_bevel=frame_info->outer_bevel;
  54.     frame_info->matte_color.red=100;
  55.     frame_info->matte_color.green=139;
  56.     frame_info->matte_color.blue=216;
  57.     frame_info->x=frame_info->width;
  58.     frame_info->y=frame_info->height;
  59.     frame_info->width=im_width+(frame_info->width << 1);
  60.     frame_info->height=im_height+(frame_info->height << 1);
  61.  
  62.  
  63.     matte_color.red=frame_info->matte_color.red;
  64.     matte_color.green=frame_info->matte_color.green;
  65.     matte_color.blue=frame_info->matte_color.blue;
  66.  
  67.     XModulate(&color,matte_color.red,matte_color.green,
  68.         matte_color.blue, HighlightModulate);
  69.  
  70.     frame_info->highlight_color.red=color.red;
  71.     frame_info->highlight_color.green=color.green;
  72.     frame_info->highlight_color.blue=color.blue;
  73.  
  74.     XModulate(&color,matte_color.red,matte_color.green,
  75.         matte_color.blue, ShadowModulate);
  76.  
  77.     frame_info->shadow_color.red=color.red;
  78.     frame_info->shadow_color.green=color.green;
  79.     frame_info->shadow_color.blue=color.blue;
  80.  
  81. }
  82.