summaryrefslogtreecommitdiffstats
path: root/debian/lcms/lcms-1.19.dfsg2/python/testbed/info.py
blob: a271a303fd8d091fb6d48bc7fc512159c00b256b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#
# Sample: Get info on profile
#

from lcms import *


hsRGB = cmsOpenProfileFromFile("sRGB Color Space profile.icm", "r")


print "Product name: ", cmsTakeProductName(hsRGB)
print "Product desc: ", cmsTakeProductDesc(hsRGB)
print "Info: ", cmsTakeProductInfo(hsRGB)

Illuminant = cmsCIEXYZ(0, 0, 0)
cmsTakeIluminant(Illuminant, hsRGB)
print "Illuminant = ", Illuminant

MediaWhite = cmsCIEXYZ(0, 0, 0)
cmsTakeMediaWhitePoint(MediaWhite, hsRGB)
print "Media White = ", MediaWhite

BlackPoint = cmsCIEXYZ(0, 0, 0)
cmsTakeMediaBlackPoint(BlackPoint, hsRGB)
print "Black point = ", BlackPoint


cmsCloseProfile(hsRGB)