- 2008.09.07 23:34 "Re: [Tiff] SAMPLEFORMAT_IEEEFP", by Bob Friesenhahn
- 2008.09.08 09:01 "Re: [Tiff] SAMPLEFORMAT_IEEEFP", by Kai-Uwe Behrmann
- 2008.09.08 23:07 "Re: [Tiff] SAMPLEFORMAT_IEEEFP", by Craig Bruce
- 2008.09.09 01:12 "Re: [Tiff] SAMPLEFORMAT_IEEEFP", by Chris Cox
- 2008.09.11 20:13 "RE: [Tiff] SAMPLEFORMAT_IEEEFP", by Charles Auer
2008.09.12 20:57 "RE: [Tiff] SAMPLEFORMAT_IEEEFP", by acanicio
Thank you for the test files.
Concerning my problems with SMinSampleValue and SMaxSampleValue, I just found this: http://www.asmail.be/msg0055048683.html
I Use libtiffdelphi, and the above discussion exactly describes my problem with these tags.
I tried the solution on the XResolution and YResolution tags and it works. The TIFF RATIONAL values can be read and written correctly if they come from a Double variable.
For example this does not work:
Procedure Writetag(OpenTiff: PTIFF);
Begin
TIFFSetField(OpenTiff,TIFFTAG_XRESOLUTION,300);
End;
But this works!
Procedure Writetag(OpenTiff: PTIFF);
Var value: Double;
Begin
value := 300;
TIFFSetField(OpenTiff,TIFFTAG_XRESOLUTION,Value);
End;
However with SMINSAMPLEVALUE and SMAXSAMPLEVALUE, none of these work:
Procedure Writetag(OpenTiff: PTIFF);
Begin
TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,1.0,1.0,1.0);
End;
Procedure Writetag(OpenTiff: PTIFF);
Var value: Double;
Begin
value := 1;
TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;
Procedure Writetag(OpenTiff: PTIFF);
Var value: Single;
Begin
value := 1;
TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;
Procedure Writetag(OpenTiff: PTIFF);
Var value: Real;
Begin
value := 1;
TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;
Procedure Writetag(OpenTiff: PTIFF);
Var value: Extended;
Begin
value := 1;
TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;
Does anybody have any other hint?
Thank you again
Best regards
Axel
I constructed some floating point test files. Sample values are between 0 and 1.
http://www.newviewgraphics.com/tiff/fptiff.zip (88kb)
--
View this message in context: http://www.nabble.com/SAMPLEFORMAT_IEEEFP-tp19363616p19463994.html Sent from the Tiff / LibTiff mailing list archive at Nabble.com.