Hi,
Can sometime indicate what I'm doing wrong, and/or how I can identify
valid output profiles to use with CMYK separations.
The format descriptor holds more information that just the colorspace,
it also has the encoding, extra channels, planar configuration,
bytes per sample, etc.
You could use:
SpaceSig = cmsGetColorSpace(hSrc)
ColorSpace = _cmsLCMScolorSpace(SpaceSig)
And then in ColorSpace you will have one of these
#define PT_GRAY 3
#define PT_RGB 4
#define PT_CMY 5
#define PT_CMYK 6
#define PT_YCbCr 7
#define PT_YUV 8
#define PT_XYZ 9
#define PT_Lab 10
#define PT_YUVK 11
#define PT_HSV 12
#define PT_HLS 13
#define PT_Yxy 14
#define PT_HiFi 15
#define PT_HiFi7 16
#define PT_HiFi8 17
#define PT_HiFi9 18
#define PT_HiFi10 19
#define PT_HiFi11 20
#define PT_HiFi12 21
#define PT_HiFi13 22
#define PT_HiFi14 23
#define PT_HiFi15 24
in your case _cmsLCMScolorSpace(SpaceSig) == PT_CMYK will
do the trick.
Hope this helps,
Marti.
----- Original Message -----
From: "Mat Ballard" <[EMAIL PROTECTED]>
To: <lcms-user@lists.sourceforge.net>
Sent: Tuesday, December 06, 2005 1:43 AM
Subject: [Lcms-user] Noob needs help on ColorSpaces
g'day everyone,
I'm using lcms via Delphi to perform to separate to CMYK.
Sometimes it works, and sometimes gives a fatal error:
Error #3000; Output profile is operating on wrong colorspace
resulting in abrupt program termination.
To me the message suggests that the problem is the Color Space of the
chosen output profile. To address this I wrote some code to open the
profile and extract the ColorSpace as a first step:
hSrc := lcmsdll.cmsOpenProfileFromFile(PChar(Filename), 'r');
Sig1 := lcmsdll.cmsGetColorSpace(hSrc);
Sig2 := cmsGetPCS(hSrc);
lcmsdll.cmsCloseProfile(hSrc);
I thought that Sig1 and Sig2 would be one of the icColorSpaceSignature
Format descriptors:
TYPE_GRAY_8 = $30009
...
TYPE_CMYK_DBL = $60020
however, I always get Sig1 = 1380401696, and Sig2 = 1482250784 - which
isn't in the range of expected values.
Can sometime indicate what I'm doing wrong, and/or how I can identify
valid output profiles to use with CMYK separations.
Thanks in advance,
Mat
________________________________________
rm -rf /mnt/windows/*
________________________________________
Dr Mat Ballard,
CSIRO Molecular Science
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
-------------------------------------------------------
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