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
February 2002

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

2002.02.01 18:39 "Contrib Win95", by Siddhartha
2002.02.01 21:41 "Re: Contrib Win95", by Jason Summers

2002.02.01 21:41 "Re: Contrib Win95", by Jason Summers

Siddhartha wrote:
> 
> Hi ,
> 
> I downloaded Libtiff and i compiled it successfully under both DJGPP and
> VC++ 6.0
> 
> In    Contrib\Win95 directory there is a file
> Tiff2dib.c , i tried to compile it with DJGPP
> 
> gcc -i tiff2dib.exe tiff2dib.c -ltiff
> 
> And got some errors , i noticed there are some undefined struture references
> such as BITMAPHEADERINFO etc.
> 
> Anybody had luck compiling this file , please help me where can i find the
> header file which is apparently missing.


My experience is that the tiff2dib.c utility included with libtiff is
quite broken. If I recall correctly, it has several bugs and even
calculates the number of bytes per pixel wrong, so that it couldn't
possibly work as-is except perhaps for images with exactly 8 bits per
pixel. (I could be wrong though.)

BITMAPINFOHEADER (not BITMAPHEADERINFO) is a standard structure in
Windows programming -

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmeother/graphcnt_1m0j.asp

I don't know enough about DJGPP to tell you what you'd need to do. In
VC++ 6.0, it should be available if you include <windows.h>.

-- 
Jason Summers