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
November 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.11.06 22:01 "Strange RGB values [Newbie Question]", by <50295@web.de>
2006.11.07 12:16 "Re: Strange RGB values [Newbie Question]", by Gerben Vos

2006.11.07 12:16 "Re: Strange RGB values [Newbie Question]", by Gerben Vos

Olumide wrote:

> I have a white, uncompressed TIFF image (no color), which I'm trying
> to read. For some reason, I'm getting mostly 205 color values for each
> channel.

> buffer = (uint32 *) malloc( sizeof(uint32 *) * imgSize;

Last part should be "sizeof(uint32) * imgSize".

> TIFFReadRGBAStrip(tiff, 0, buffer);

Note that you are reading only a strip, not the entire image. But after
that, you print the byte contents of the entire image. If the image
consists of multiple strips, the buffer will not have been filled
completely.

> Where does the 205 come from? Thanks,

205 is 0xCD hexadecimal. I think it is some kind of filler for
uninitialized buffers under Windows.

					Gerben Vos.