|AWARE [SYSTEMS]||Imaging expertise for the Delphi developer|
|TIFF and LibTiff Mailing List Archive|
LibTiff Mailing List
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.