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
August 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.08.16 02:05 "Re: How to save in tiff format file?", by Toh Kc
2006.08.24 13:38 "Re: How to save in tiff format file?", by Gerben Vos
2006.08.24 14:56 "Re: How to save in tiff format file?", by Toh Kc

2006.08.24 14:56 "Re: How to save in tiff format file?", by Toh Kc

Hi,
    Thanks alot for ur reply, think i have sloved my
problem. I just simply wan to copy from one data to
the other. Cheers! :)

Regards
Kc


--- Gerben Vos <Gerben@ZyLAB.COM> wrote:

> > for the SaveTiffFile(), have already tested and
> able
> > to save a tiff file, what has really bother about
> ne
> > is still the intialisation of the array, sImg.
> 
> >      for (int i = 0; i < Gheight; i++)
> >        for(int j = 0; j < Gwidth; j++)
> >         sImg[i * Gwidth + j] = (unsigned char)(j *
> i);
> 
> This initialization is OK, if what you want is a
> swirly test pattern.
> 
> If you want to copy the data from another image, it
> would perhaps be
> something like (depending on how that image data is
> stored):
> 
>      for (int i = 0; i < Gheight; i++)
>        for(int j = 0; j < Gwidth; j++)
>         sImg[i * Gwidth + j] = origImg[i * Gwidth +
> j];
> 
> It all depends on what you are trying to do. You
> haven't told us that
> yet, or maybe you did tell us that a long time ago
> and I forgot.
> 
> > I have doubt here:
> > Can I say that for most of the time when saving
> the
> > the tiff file, the intialisation of the array for
> the
> > tiff image to save in, is the same?
> 
> Sorry, I don't understand you. What do you mean?
> 
> 					Gerben Vos.
> 



		
____________________________________________________
Yahoo! Singapore Answers
Real people. Real questions. Real answers. Share what you know at http://answers.yahoo.com.sg