g'day Marti, thanks for your help on ColorSpaces - that bit is now cooking on gas. Can now convert from RGB to CMYK without getting nasty crashes due to using an inappropriate profile.
Next step is implementing some Ink Limiting. I've seen cmsCreateInkLimitingDeviceLink in the lcmsAPI, and I think that what I need. However, I am unsure how to use it, especially in combination with the existing RGB to CMYK conversion. My current code is: hSrc := lcmsdll.cmsOpenProfileFromFile(PChar(SourceFile), 'r'); hDest := lcmsdll.cmsOpenProfileFromFile(PChar(DestFile), 'r'); xform := lcmsdll.cmsCreateTransform(hSrc, TYPE_BGR_8, hDest, TYPE_CMYK_8, Intent, dwFlags); for i := 0 to SourceBitmap.Height - 1 do begin ALine := SourceBitmap.Scanline[i]; lcmsdll.cmsDoTransform(xform, ALine, CMYKLine, SourceBitmap.Width); .... {save the CYMKLine to appropriate bitmap planes} end; {cleanup:} lcmsdll.cmsDeleteTransform(xform); lcmsdll.cmsCloseProfile(hSrc); lcmsdll.cmsCloseProfile(hDest); Can you or someone please indicate where / how I should add the cmsCreateInkLimitingDeviceLink function ? Thank in advance, Mat ________________________________________ rm -rf /mnt/windows/* ________________________________________ Dr Mat Ballard, CSIRO Molecular Science, Bag 10, Clayton South MDC, Vic 3169. AUSTRALIA. tel: 61-3-9545-2425 fax: 61-3-9545 2446 [EMAIL PROTECTED] http://www.wark.csiro.au/ballard/ Linux Registered User #6854 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user