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
March 2007

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!



2007.03.08 09:38 "(no subject)", by W Bradford Paley

Dear all,

I'm a Windows LibTIFF newbie, compounded by the fact that I'm re-learning
C++ after a decade of hacking Java... Making progress, though.

I want to save images I create in an Open GL window as TIFFs, and have
run the Setup program I found at the top of the download list on the page:
http://gnuwin32.sourceforge.net/packages/tiff.htm

I downloaded libtiff3.dll and jpeg62.dll and copied them to my SYSTEM32
directory when I couldn't run my compiled program; after dutifully adding
the LibTiff header and linking stuff in my Visual Studio 7.1 Project
Properties page. The program runs fine now. So far so good.

But when I execute the lines
         char buffer[1024 * 768];
         TIFF *tiff;
         if ((tiff = TIFFOpen("output.tif", "w")) == NULL) {
                 cout << "could not open output.tif for writing\n";
                 exit(42);
         }
TIFFOpen always returns the NULL that gives me the answer (42), not the image.

Does this sound familiar to anyone? What simple thing am I missing?

Kind Regards,
Brad

P.S. I believe/hope this is the right place to ask this question, and have
checked the only FAQ I found that seemed relevant. If there's a better place
for met to ask.search, please tell me?





W. Bradford Paley

Digital Image Design Incorporated 170 Claremont Suite 6 New York NY 10027
http://didi.com/brad  http://informationEsthetics.org  http://textarc.org
http://google.com/search?&q=%22Brad+Paley%22+OR%22+Bradford+Paley%22+-flash
(917) 686-3274

This document may contain information that is privileged and confidential.
Do not disseminate to others without explicit written permission.