graymap-setpixel!

Synopsis

(graymap-setpixel! graymap x y value)

Parameters

  • graymap: A 16 vit graymap
  • x
  • y
  • value : grayvalue in the range from 0 (black) to 65535 (white)

Description

Side Effects

The pixel at the position is set to the specified gray value.

Return Value

unspecified (ok)

Example

> (define gm (graymap-create 100 50))
gm
> (graymap-setpixel! gm 99 0 30000)
ok
> (graymap-getpixel gm 99 0)
30000
>