2012.06.16 16:37 "[Tiff] about the TIFFSetField usage", by He Yang

2012.06.16 16:37 "[Tiff] about the TIFFSetField usage", by He Yang

Hi
    I am a beginner, an try to learn how to use TIFFSetField usage, I
try to use TIFFSetField as below

      TIFFSetField(tif, tag, count, vlaue_ptr);

it works, but the value is not correct when I try to use TIFFGetField, the count = 1, and the vlaue_ptr is the pointer of a short value, which value equal to 16, but when I read it back it become 1. What I did wrong?

Thanks in advance.