graymap-readpng

Synopsis

(graymap-readpng filename)

Parameters

filename

Description

This procedure reads a 16 bit grayscale PNG file.

Side Effects

Return Value

The 16 bit graymap is returned.

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