| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2008.09.12 20:57 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>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 Charles Auer wrote: > > > I constructed some floating point test files. Sample values are between 0 > and 1. > > http://www.newviewgraphics.com/tiff/fptiff.zip (88kb) > > Charles > > _______________________________________________ > Tiff mailing list: Tiff@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/tiff > http://www.remotesensing.org/libtiff/ > -- View this message in context: http://www.nabble.com/SAMPLEFORMAT_IEEEFP-tp19363616p19463994.html Sent from the Tiff / LibTiff mailing list archive at Nabble.com. |
|||||||