graymap-writepng

Synopsis

(graymap-writepng graymap filename)

Parameters

  • graymap : a 16 bit graymap
  • filename

Description

The 16 bit graymap is written to the specified file in PNG file format (non interlaced).

Side Effects

Return Value

unspecified

Example

> (define x (mandelbrot -2.0 2.0 -2.0 2.0 200 640))
x
> (graymap-equalize! x)
ok
> (graymap-writepng x "mandelbrot-test.png")
ok
> (define y (graymap-readpng "mandelbrot-test.png"))
y
> y
#<graymap(16) orow:-1 ocol:-1 xres:-1 yres:-1 w:640 h:640>
> (graymap-equal? x y)
#t
>

The 16 bit grayscale PNG image file mandelbrot-test.png displays as follows:

fractal-example-16bit.png