greymap-getpixel

Synopsis

(greymap-getpixel greymap x y)

Parameters

  • greymap
  • x
  • y

Description

Side Effects

Return Value

The grey value of the specified pixel is returned.

Example

> (define cm (colormap-create 100 50))
cm
> (rgb 1 1 1)
65793
> (colormap-setpixel! cm 99 0 (rgb 1 1 1))
ok
> (define gm (colormap->greymap cm))
gm
> (greymap-getpixel gm 99 0)
0
> (define gm (colormap-channel->greymap cm 0))
gm
> (greymap-getpixel gm 99 0)
1
>