All Manuals > CAPI User Guide and Reference Manual > 24 COLOR Reference Entries

NextPrevUpTopContentsIndex

color-from-premultiplied

Function
Summary

Transforms a color to its un-premultiplied version.

Package

color

Signature

color-from-premultiplied color => result

Arguments

color

A color-spec.

Values

result

A color-spec.

Description

The function color-from-premultiplied transforms a color, which is assumed to be premultiplied, to its un-premultiplied version.

color should be a color-spec (see Color specs).

If color is RGB with alpha it is transformed to its RGB un-premultiplied version. Otherwise color is returned without a change.

Notes

You get premultiplied colors when using Image Access, either by unconverting (using unconvert-color) the result of image-access-pixel, or by reading the values from the vector that is filled by image-access-pixels-from-bgra.

See also

color-to-premultiplied
image-access-pixel
image-access-pixels-to-bgra
image-access-pixels-from-bgra
Image access


CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex