Hi To create a RGB Profile I must use :
hProfile := cmsCreateRGBProfile(@WhitePoint, @Primaries, GammaTables); The white point is calculated by: cmsWhitePointFromTemp(WhitePointValue, @WhitePoint); By default WhitePoint is 6504 I give the primaries. By default I set them to : Primaries.Red.x := 0.6400; Primaries.Red.y := 0.3300; Primaries.Red.YY := 1.0; Primaries.Green.x := 0.3000; Primaries.Green.y := 0.6000; Primaries.Green.YY := 1.0; Primaries.Blue.x := 0.1500; Primaries.Blue.y := 0.0600; Primaries.Blue.YY := 1.0; The gamma tables are generally calculated by cmsBuildGamma: GammaTables[1] := cmsBuildGamma(256, GammaRed); GammaTables[2] := cmsBuildGamma(256, GammaGreen); GammaTables[3] := cmsBuildGamma(256, Gammablue); I did remark that: 1 - If I create an icm file with my default values and all gammas build with value 1. 2 - If I create an icm file with my default values and other gammas (for red, green and blue). 3 - If create an xtransform from the file 1 to the file 2 The result of my transform is exactly like if I apply the gamma tables used to create my file 2 to my images. My boss wants to construct some curve with a visual component. I try to save a modified GammaTables in an icm file. To save my file I do: Im using a default primary color. Im using the default white point. I build the gammaTables. I modify the value of the gammaTables with my wanted value. I create my profile with (cmsCreateRGBProfile). Unfortunately when I reopen my icm file and apply the profile to an image, I see that the saved curve in the file is not the curve I have modified. What is my error? Thank ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user