Hi,

Next step is implementing some Ink Limiting.

Ok. But anyway, most CMYK profiles have ink limiting already applied, so, unless you are experiencing problems because
too much ink dropped, there is no real need to do that.

The way to do that is by using multiprofile transforms (cmsCreateMultiprofileTransform) or by applying the ink limit devicelink using another transform. Ink limiting takes place at the very
final stage. The profile chain is:

Input -> Output -> CMYK -> Ink limiting

Humm, I think delphi wrapper has multiprofile transforms not defined so you are forced to two transforms in this case.

Regards
Marti Maria
The littleCMS project
http://www.littlecms.com




----- Original Message ----- From: "Mat Ballard" <[EMAIL PROTECTED]>
To: <lcms-user@lists.sourceforge.net>
Sent: Tuesday, January 10, 2006 5:58 AM
Subject: Re: [Lcms-user] Noob needs help on ColorSpaces


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



-------------------------------------------------------
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

Reply via email to