Hi, You can programatically know if a profile is a devicelik by doing that:
IsDeviceLink = (cmsGetDeviceClass(hProfile) == icSigLinkClass); The reason tifficc, jpegicc and so requires a -l when using a devicelink is to make things easier to understand. Remember those programs assumes sRGB by default on -i and -o Regards, Marti Maria The little cms project http://www.littlecms.com ----- Original Message ----- From: "Leonard Rosenthol" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 13, 2004 3:42 PM Subject: [Lcms-user] Determining if profile is DeviceLink or not In reviewing all the demo sources, they all require that the user explicitly state that they will be using a DeviceLink profile instead of a pairing of input & output. Is this because there is no way to programmatically determine if a given profile is DeviceLink or not? Or just to make the code easier to understand? I ask because for my application (which already happily uses lcms), I can't force the user to specify what type of profile - I just want them to pick one and then "do the right thing". So how do I tell? Thanks, Leonard --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) ------------------------------------------------------- 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 ------------------------------------------------------- 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
