IC_gamut.scr
IC_gamut.scr checks the color gamut of an image it evaluates.
This script demonstrates that the KCMS framework can successfully perform the EVAL: command and check the color gamut. First the script loads two profiles and connects them to create a resulting profile. It then evaluates the image through the resulting profile, requesting that the color gamut be checked. Since not all devices can represent the same number or range of colors, gamut testing can indicate how many of the image's colors are reproducible on the output device.
The number of pixels that are out of gamut (that is, their colors are not reproducible) is printed. The output image is not saved but instead is represented by 0's and FF's. Each 0 represents an in-gamut pixel and each FF, an out-of-gamut pixel.