use the display rendering intent as set in the user's color management
2007-10-04 Sven Neumann <sven@gimp.org> * modules/colorsel_cmyk_lcms.c: use the display rendering intent as set in the user's color management preferences. Use black point compensation if the rendering intent is relative colorimetric. svn path=/trunk/; revision=23723
This commit is contained in:
parent
63b451abb0
commit
e599d3901a
2 changed files with 13 additions and 4 deletions
|
|
@ -5,6 +5,8 @@
|
|||
preferences. Use black point compensation if the rendering intent
|
||||
is relative colorimetric.
|
||||
|
||||
* modules/colorsel_cmyk_lcms.c: same change here.
|
||||
|
||||
2007-10-03 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* modules/cdisplay_lcms.c: use black point compensation if the
|
||||
|
|
|
|||
|
|
@ -376,6 +376,7 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
|
|||
{
|
||||
GimpColorSelector *selector = GIMP_COLOR_SELECTOR (module);
|
||||
GimpColorConfig *config = module->config;
|
||||
DWORD flags = 0;
|
||||
cmsHPROFILE rgb_profile;
|
||||
cmsHPROFILE cmyk_profile;
|
||||
const gchar *name;
|
||||
|
|
@ -412,14 +413,20 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
|
|||
|
||||
rgb_profile = color_config_get_rgb_profile (config);
|
||||
|
||||
if (config->display_intent ==
|
||||
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC)
|
||||
{
|
||||
flags |= cmsFLAGS_WHITEBLACKCOMPENSATION;
|
||||
}
|
||||
|
||||
module->rgb2cmyk = cmsCreateTransform (rgb_profile, TYPE_RGB_DBL,
|
||||
cmyk_profile, TYPE_CMYK_DBL,
|
||||
INTENT_PERCEPTUAL,
|
||||
0);
|
||||
config->display_intent,
|
||||
flags);
|
||||
module->cmyk2rgb = cmsCreateTransform (cmyk_profile, TYPE_CMYK_DBL,
|
||||
rgb_profile, TYPE_RGB_DBL,
|
||||
INTENT_PERCEPTUAL,
|
||||
0);
|
||||
config->display_intent,
|
||||
flags);
|
||||
|
||||
cmsCloseProfile (rgb_profile);
|
||||
cmsCloseProfile (cmyk_profile);
|
||||
|
|
|
|||
Loading…
Reference in a new issue