home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / softsys / khoros / 3281 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.soft-sys.khoros
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!umeecs!umn.edu!mmm.serc.3m.com!news
  3. From: schultz@halley.est.3m.com (John C. Schultz)
  4. Subject: printing pixels in editimage
  5. Message-ID: <SCHULTZ.93Jan21164400@halley.est.3m.com>
  6. Sender: news@mmm.serc.3m.com
  7. Organization: 3M Company, 3M Center, Minnesota, USA
  8. Distribution: comp
  9. Date: Thu, 21 Jan 93 22:47:42 GMT
  10. Lines: 24
  11.  
  12. One of the display limitations I felt of Khoros was that the print
  13. pixel values function showed the display color and the display pixel
  14. intensities - not the true pixel intensities.   A slight modification
  15. to run_pixels.c in src/xvroutines/editimage was all that is needed.
  16.  
  17. The diff is shown below.  
  18.  
  19. In editimage, Print Pixel Values now prints the true pixel value but only
  20. when in grey mode.
  21.  
  22. 385d384
  23. <     double    true_value;
  24. 405c404
  25. <               xvd_query_value(xvdisplay, x, y, &true_value, &index, NULL);
  26. ---
  27. >               xvd_query_value(xvdisplay, x, y, NULL, &index, NULL);
  28. 463,464c462
  29. <                value = true_value;
  30. < /*               value = ((color.red + color.green + color.blue)/3) >> 8; */
  31. ---
  32. >                value = ((color.red + color.green + color.blue)/3) >> 8;
  33. --
  34.    John C. Schultz   +1 (612) 733-4047   schultz@halley.serc.3m.com
  35.    How to include the taste of Glendronach in a multi-media system?
  36.