コード例 #1
0
ファイル: libcms.py プロジェクト: sahwar/sk1-wx
def get_display_profile_resource():
    """Returns named temporary file object of built-in display profile.

    :return: path to built-in display profile
    """
    import display_profile_rc
    return display_profile_rc.get_resource(True)
コード例 #2
0
ファイル: libcms.py プロジェクト: witwall/uniconvertor
def cms_create_display_profile():
	"""	
	Artificial functionality. The function emulates built-in display
	profile reading profile resource attached to the package.
	Returns a handle to lcms built-in display profile wrapped as a Python object. 
	The handle doesn't require to be closed after usage because
	on object delete operation Python calls native cms_close_profile()
	function automatically
	"""
	import display_profile_rc
	profile = display_profile_rc.get_resource(True)
	return cms_open_profile_from_file(profile.name)
コード例 #3
0
ファイル: libcms.py プロジェクト: sanyaade-multimedia/uc2
def cms_create_display_profile():
    """	
	Artificial functionality. The function emulates built-in display
	profile reading profile resource attached to the package.
	Returns a handle to lcms built-in display profile wrapped as a Python object. 
	The handle doesn't require to be closed after usage because
	on object delete operation Python calls native cms_close_profile()
	function automatically
	"""
    import display_profile_rc
    profile = display_profile_rc.get_resource(True)
    return cms_open_profile_from_file(profile.name)
コード例 #4
0
ファイル: libcms.py プロジェクト: witwall/uniconvertor
def get_display_profile_resource():
	"""
	Returns named temporary file object of built-in display profile.
	"""
	import display_profile_rc
	return display_profile_rc.get_resource(True)