Thread: [Lcms-user] Re: to write profiles ICC
An ICC-based CMM for color management
Brought to you by:
mm2
From: <ma...@li...> - 2002-04-02 08:00:33
|
Hi, >Today I seek an algorithm in Delphi which makes it possible to >write profiles ICC when one determined the trichromatic components >of the primary educations of the monitor and the gammas which are >dependent for them. Can you advise me again? Is easy using lcms. You need three things: - White point - Primaries - Gamma curves Once you have all these, then you can build a "virtual" profile. In the tutorial (part V) this is explained in detail, so I will assume you know how to do. The function is cmsCreateRGBProfile() Then, you can save the generated virtual profile by calling: _cmsSaveProfile(hProfile, 'name.icm') Please note the leading underscore. You can also add information about name, copyright, etc. by using _cmsAddTextTag before saving. Examples: _cmsAddTextTag(hProfile, $63707274, 'copyright (c) you') _cmsAddTextTag(hProfile, $646D6E64, 'Manufacturer') _cmsAddTextTag(hProfile, $646D6464, 'Model') These weird numbers are tag identifiers. To know wich numbers are tied to each tag, you can browse the ICC spec (http://www.color.org) or take a look into ICC34.H Usually, these 3 above are the only ones needed. Hope this helps, Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: Color ID To: Martí Maria Sent: Monday, April 01, 2002 6:08 PM Subject: to write profiles ICC Hello, At the beginning of February of this year me usefully advised you to use in Delphi the library " Lcmsdll ". I could develop an application which reads and uses profile ICC of the monitors. Today I seek an algorithm in Delphi which makes it possible to write profiles ICC when one determined the trichromatic components of the primary educations of the monitor and the gammas which are dependent for them. Can you advise me again? cordially, Jean-Pierre Guillemin e-mail jp...@co... |