diff options
Diffstat (limited to 'debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py')
| -rwxr-xr-x | debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py b/debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py new file mode 100755 index 00000000..2115b097 --- /dev/null +++ b/debian/lcms/lcms-1.19.dfsg2/python/testbed/clamp.py @@ -0,0 +1,23 @@ + +# +# Sample: Gamut clamping +# + +from lcms import * + + + +Lab = cmsCIELab(80, -200, 50) +print "Original", Lab + +# +# Desaturates color to bring it into gamut. +# The gamut boundaries are specified as: +# -120 <= a <= 120 +# -130 <= b <= 130 + +cmsClampLab(Lab, 120, -120, 130, -130) + +print "Constrained", Lab + + |
