🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.soft-sys.khoros
1 messages
1 total messages Started by John C. Schultz Thu, 21 Jan 1993 22:47
printing pixels in editimage
#1084
Author: John C. Schultz
Date: Thu, 21 Jan 1993 22:47
24 lines
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?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads