Hi,

My first problem is to dump the gammatable into an array of string for output.

gamtbl:=cmsReadICCGamma(hSrc, StrToInt('$' + '72545243'));
gamest:=cmsEstimateGamma(gamtbl);

So I get the result approximate 1.8 by using eci.icc

But how did I get the real values instead of the EstimateGamma?

gamest^.GammaTable[]

You can also access the number of entries in the table by using gamest^.nEntries

My second problem is to dump the Look-Up-Table into an array of string for 
output.

Ops, here the problem comes evident. A LUT may have a lot of different 
implementations,
not only one table.  In fact it was so hard than I didn't include in the Delphi 
wrapper,
that is the reason cmsReadICCLut is not there. Maybe you could convert the C 
structure
to Delphi. If you want to give a try, it is located in lcms.h, struct 
_lcms_LUT_struc
But be careful because it is not part of the API and thus may change  across 
lcms revisions.
(it has changed in 1.15)

Regards
--
Marti Maria
The littlecms project.
www.littlecms.com



----- Original Message ----- From: andre koerner
To: lcms-user@lists.sourceforge.net
Sent: Monday, August 08, 2005 8:07 PM
Subject: [Lcms-user] dump tables


Hello,

unfortunately I have some more questions about using your library (lcms.dll).
I hope you're able to answer all these questions and I didn't take too much of 
your time.
I'd like to program an application like the "ICC-Profile Inspector" (with 
Delphi).

My first problem is to dump the gammatable into an array of string for output.

gamtbl:=cmsReadICCGamma(hSrc, StrToInt('$' + '72545243'));
gamest:=cmsEstimateGamma(gamtbl);

So I get the result approximate 1.8 by using eci.icc

But how did I get the real values instead of the EstimateGamma?


My second problem is to dump the Look-Up-Table into an array of string for 
output.

To use the "cmsReadICCLut" function, I had to insert the following program 
lines into the lcmsdll.pas:

Function cmsReadICCLut (hProfile: cmsHPROFILE;
                                          Sig: icTagSignature): LPLUT; StdCall;

Function cmsReadICCLut (hProfile: cmsHPROFILE;
                                           Sig: icTagSignature): LPLUT; 
EXTERNAL 'lcms.dll';


The result I get is a Pointer (LPLUT).
Could you explain me how I can handle the LPLUT-Pointer to
get the Input and Output values of the Look-Up-Table.


Regards,
André K.




No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.2/65 - Release Date: 07/08/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.2/65 - Release Date: 07/08/2005



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to