AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.07.21 12:40 "[Tiff] How to save in tiff format file?", by Toh kc
2006.07.21 17:16 "RE: [Tiff] How to save a tiff format file?", by
2006.07.25 11:45 "Re: [Tiff] How to save in tiff format file?", by Gerben Vos
2006.07.25 13:41 "RE: [Tiff] How to save in tiff format file?", by
2006.07.30 10:36 "Re: [Tiff] How to save in tiff format file?", by Toh kc
2006.07.31 13:39 "RE: [Tiff] How to save in tiff format file?", by
2006.08.02 02:09 "RE: [Tiff] How to save in tiff format file?", by Toh kc
2006.08.02 10:14 "Re: [Tiff] How to save in tiff format file?", by Gerben Vos
2006.08.02 17:27 "RE: [Tiff] How to save in tiff format file?", by
2006.08.16 02:05 "[Tiff] Re: How to save in tiff format file?", by Toh kc
2006.08.24 13:38 "Re: [Tiff] Re: How to save in tiff format file?", by Gerben Vos
2006.08.24 14:56 "Re: [Tiff] Re: How to save in tiff format file?", by Toh kc

2006.08.02 10:14 "Re: [Tiff] How to save in tiff format file?", by Gerben Vos

But the saved image is still distorted. I think is proably because of the intialisation of the array below.

for (int i = 0; i < Gheight; i++)
   for(int j = 0; j < Gwidth; j++)

        sImg[i * Gwidth + j] = (unsigned char)(j * i);

Or is it something wrong with the dimension of the image i am going to save, that why the saved image is distorted?

It depends.

I suppose the code above is just some test data? I haven't looked at the resulting TIFF that your code produces, but when I look at the code it doesn't look to me like it produces a useful image. Please correct me if I'm wrong. What is the real image you are trying to save? Or, in what way is the image distorted?

Gerben Vos.