colormap-writejpg

Synopsis

(colormap-writejpg colormap filename)

(colormap-writejpg colormap filename quality)

Parameters

  • colormap
  • filename
  • quality (optional)

Description

The colormap is written to the specified file in JPG file format with the specified quality (default is 75 if not provided).

Side Effects

Return Value

unspecified (ok)

Example

> (define cm (colormap-create 640 480))
cm
> (colormap-writejpg cm "test.jpg")
ok
>