| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2005.04.17 06:33 "Re: How do I access the data once I use TIFFReadEncodedStrip?", by Chris LosingerAt 02:12 AM 4/17/2005, Phillip Wiles wrote: > I'm using a small sample tiff (that is Group 3 compressed) and would like > to get it to display out in window as: 00000111000 > Which gives me this: > c:\main.cpp(30) : error C2036: 'void *' : unknown size > c:\main.cpp(30) : error C2679: binary '<<' : no operator defined which > takes a right-hand operand of type 'void' (or there is no acceptable > conversion) > > Is it because I'm trying to use std::cout calls, or am I completely not > understanding how buf works? > > tdata_t buf; > .... > > std::cout << buf[x + (height * y)]; buf is a void * pointer, so it isn't really addressing single bytes - it's just a pointer to the start of *something*. that's the "unknown size" error. if you want to print individual characters, you can do something like: char *p = (char *)buf; std::cout << p[x + (height *y)]; etc ---- Chris Losinger losinger@earthlink.net smallest@smalleranimals.com http://www.smalleranimals.com |
|||||||