colormap-vmirror!

Synopsis

(colormap-vmirror! colormap)

Parameters

  • colormap

Description

This procedure mirrors the colormap destructively and vertically thus exchanging the upper and lower half accordingly.

Side Effects

The colormap is modified.

Return Value

The mirrored colormap is returned.

Example

> (define image (colormap-readjpg "horses.jpg"))
image
> (colormap-writejpg (colormap-vmirror! image) "horses-vmirrored.jpg")
ok
>

The input image displays as follows (horses.jpg, JPG, 2400x1600): horses.jpg

The vertically mirrored image looks like this: horses-vmirrored.jpg