colormap-hmirror!

Synopsis

(colormap-hmirror! colormap)

Parameters

  • colormap

Description

This procedure mirrors the colormap destructively and horizontally thus exchanging right and left like a RL-mirror.

Side Effects

The colormap is modified.

Return Value

The mirrored colormap is returned.

Example

> (define image (colormap-readjpg "horses.jpg"))
image
> (colormap-writejpg (colormap-hmirror! image) "horses-hmirrored.jpg")
ok
>

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

The horizontally mirrored image looks like this: horses-hmirrored.jpg