Hi,
I need to check the out-of-gamut condition of several XYZ points in a generic profile.
I tried the following code:
hInProfile = cmsCreateXYZProfile(); hOutProfile = cmsCreate_sRGBProfile(); hProofProfile = cmsOpenProfileFromFile( m_ProfileName, "r");
hColorTrans = cmsCreateProofingTransform( hInProfile, TYPE_XYZ_DBL,
hOutProfile, TYPE_RGB_8,
hProofProfile,
INTENT_PERCEPTUAL,
INTENT_ABSOLUTE_COLORIMETRIC,
cmsFLAGS_GAMUTCHECK | cmsFLAGS_SOFTPROOFING );
cmsSetAlarmCodes( 0, 0, 0 );
but any XYZ point translated using cmsDoTransform( hColorTrans, XYZarray, RGBarray, nPoints );
produces an out-of-gamut condition (a (0, 0, 0) RGB value)
I tried several profiles, including the standard sRGB, obtaining the same result.
Probably I do something wrong but I don't know where.
Can somebody help me? Thank you in advance.
Andrea
--
Andrea Galligani __\/__
. / ^ _ \ .
|\| (o)(o) |/|
#----------------.OOOo--oo--oOOO.-----------#
# Macs Tech s.r.l. #
# Via S. Paolo 11 #
# 56125 Pisa - Italy #
# #
# Phone & Fax: +39 050 40915 # #_________________________Oooo._____________#
.oooO ( )
( ) ) /
\ ( (_/
\_)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user
