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

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 15.1 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
13.10.8 Image access


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:10