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
April 2005

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

2005.04.17 06:12 "How do I access the data once I use TIFFReadEncodedStrip?", by Phillip Wiles
2005.04.17 06:33 "Re: How do I access the data once I use TIFFReadEncodedStrip?", by Chris Losinger
2005.04.18 20:56 "Re: How do I access the data once I use TIFFReadEncodedStrip?", by Phillip Wiles

2005.04.17 06:33 "Re: How do I access the data once I use TIFFReadEncodedStrip?", by Chris Losinger

At 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