Article View: comp.soft-sys.khoros
Article #1084printing pixels in editimage
From: John C. Schultz
Date: Thu, 21 Jan 1993 22:47
Date: Thu, 21 Jan 1993 22:47
24 lines
1365 bytes
1365 bytes
One of the display limitations I felt of Khoros was that the print pixel values function showed the display color and the display pixel intensities - not the true pixel intensities. A slight modification to run_pixels.c in src/xvroutines/editimage was all that is needed. The diff is shown below. In editimage, Print Pixel Values now prints the true pixel value but only when in grey mode. 385d384 < double true_value; 405c404 < xvd_query_value(xvdisplay, x, y, &true_value, &index, NULL); --- > xvd_query_value(xvdisplay, x, y, NULL, &index, NULL); 463,464c462 < value = true_value; < /* value = ((color.red + color.green + color.blue)/3) >> 8; */ --- > value = ((color.red + color.green + color.blue)/3) >> 8; -- John C. Schultz +1 (612) 733-4047 schultz@halley.serc.3m.com How to include the taste of Glendronach in a multi-media system?
Technical Details
Message-ID:
<SCHULTZ.93Jan21164400@halley.est.3m.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!umeecs!umn.edu!mmm.serc.3m.com!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.soft-sys.khoros Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!umeecs!umn.edu!mmm.serc.3m.com!news From: schultz@halley.est.3m.com (John C. Schultz) Subject: printing pixels in editimage Message-ID: <SCHULTZ.93Jan21164400@halley.est.3m.com> Sender: news@mmm.serc.3m.com Organization: 3M Company, 3M Center, Minnesota, USA Distribution: comp Date: Thu, 21 Jan 93 22:47:42 GMT Lines: 24