info.py
来自「下载来的一个看图软件的源代码」· Python 代码 · 共 33 行
PY
33 行
## 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 = ", IlluminantMediaWhite = cmsCIEXYZ(0, 0, 0)cmsTakeMediaWhitePoint(MediaWhite, hsRGB)print "Media White = ", MediaWhiteBlackPoint = cmsCIEXYZ(0, 0, 0)cmsTakeMediaBlackPoint(BlackPoint, hsRGB)print "Black point = ", BlackPointcmsCloseProfile(hsRGB)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?