AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.07.21 12:40 "How to save in tiff format file?", by Toh Kc
2006.07.21 17:16 "Re: How to save a tiff format file?", by Bernie Pallek
2006.07.25 11:45 "Re: How to save in tiff format file?", by Gerben Vos
2006.07.25 13:41 "Re: How to save in tiff format file?", by Bernie Pallek
2006.07.30 10:36 "Re: How to save in tiff format file?", by Toh Kc
2006.07.31 13:39 "Re: How to save in tiff format file?", by Bernie Pallek
2006.08.02 02:09 "Re: How to save in tiff format file?", by Toh Kc
2006.08.02 10:14 "Re: How to save in tiff format file?", by Gerben Vos
2006.08.02 17:27 "Re: How to save in tiff format file?", by Bernie Pallek

2006.08.02 02:09 "Re: How to save in tiff format file?", by Toh Kc

Hi,
   sorry to disturb again.. 
This time round, I have allocated the array
dynamically.

Code:
int nPixels = Gwidth * Gheight;
unsigned char *sImg = NULL;

if (sImg == NULL)
    sImg = new unsigned char [nPixels];

But the saved image is still distorted. I think is
proably because of the intialisation of the array
below. 
(I have change array to sImg.)

Code:
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?

Regards
Kc



		
__________________________________ 
The World Cup Is Now On Your Favorite Front Page 
http://www.yahoo.com.sg