View Source CImg.Util (cimg v0.1.21)

CImg utility library.

Summary

Functions

Get aspect of the image.

Get inverse aspect of the image.

[util] Get a rondom color.

[util] Make random color palette %{}.

Functions

Get aspect of the image.

Parameters

  • img - %CImg{}

Get inverse aspect of the image.

Parameters

  • img - %CImg{}

[util] Get a rondom color.

[util] Make random color palette %{}.

Parameters

  • keys - keys of the color palette
    • if keys is integer -> 0..(keys-1)
    • if keys is binary -> read from the file "keys"
    • if keys is list -> use it