From: <ma...@li...> - 2002-01-15 15:14:16
|
Hi, I am attaching a sample on how to do whole stuff on Delphi. Compile by DCC32 -CC testfrm.pas (it is a console program) The parameters are as all other functions... I do use C convention of destination first, then source. strcpy() for example works in such way. As you noted, the mistake is in cmsFloat2LabEncoded() that should read: PROCEDURE cmsFloat2LabEncoded(wLab: Pointer; Lab: LPcmsCIELab); StdCall; Sorry again. I didn't catch the bug because it compiles and works ok no matter the wrong parameters; Delphi doesn't check the pointer type! Another question... the apparent loss of precission, or that's same, different values, are due to the quantization induced by 8 bit. Using 16 bit on RGB the sample gets pretty same values after rounding. Regards, Marti. |