1995-08-09 08:06:35 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Caml Special Light */
|
|
|
|
/* */
|
|
|
|
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
|
|
|
|
/* */
|
|
|
|
/* Copyright 1995 Institut National de Recherche en Informatique et */
|
|
|
|
/* Automatique. Distributed only by permission. */
|
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1995-05-08 10:04:35 -07:00
|
|
|
#include "libgraph.h"
|
|
|
|
|
|
|
|
value gr_point_color(vx, vy)
|
|
|
|
value vx, vy;
|
|
|
|
{
|
|
|
|
int x = Int_val(vx);
|
|
|
|
int y = Int_val(vy);
|
|
|
|
XImage * im;
|
|
|
|
int rgb;
|
|
|
|
|
|
|
|
im = XGetImage(grdisplay, grbstore.win, x, Bcvt(y), 1, 1, (-1), ZPixmap);
|
|
|
|
rgb = gr_rgb_pixel(XGetPixel(im, 0, 0));
|
|
|
|
XDestroyImage(im);
|
|
|
|
return Val_int(rgb);
|
|
|
|
}
|
|
|
|
|
|
|
|
|