I like it when things get complicated... I want to call the function cmsCreateLab2Profile. But this function takes a pointer to cmsCIExyY parameter. cmsXYZ is a struct -- I'm in love :(
So, in my call to the function, I need to pass a pointer to a cmsCIExyY struct, containing the xy chromaticities of, say, D50 (0.9642, 1, 0.8245), something like that (I'm going from memory). So, first, in my C# program, I have to declare and initialize the cmsCIExyY struct, in order to pass its address to the cmsCreateLab2Profile. Right? This is how cmsCIExyY is defined in lcms2.h : typedef struct { cmsFloat64Number x; cmsFloat64Number y; cmsFloat64Number Y; } cmsCIExyY; BUT, it gets better! Turns out there is a cmsD50_xyY function that returns a pointer to a cmsCIExyY struct with, presumably, the D50 xyY : const cmsCIExyY* CMSEXPORT cmsD50_xyY(void) { static cmsCIExyY D50xyY; cmsXYZ2xyY(&D50xyY, cmsD50_XYZ()); return &D50xyY; } The thing is, I scanned the whole lcms2.h and associated files but there are no traces of a D50 definition? I'm lost :( / Roger ------------------------------------------------------------------------------ _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user