Transforms a color to its un-premultiplied version.
color
color-from-premultiplied color => result
color⇩ |
A color-spec. |
result |
A color-spec. |
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.
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.
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 (Macintosh version) - 01 Dec 2021 19:31:50