| 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 |
Thread1994.08.26 22:18 "Re: alpha bug report", by Dan Mccoy>I'm having trouble with the alpha version,
>void ReadTIFF ( char *filename, Matrix *in )
>{
> TIFF *tif;
> char *buf;
> int row, column;
> tsample_t sample;
> unsigned long imagelength, imagewidth;
Longs are 64 bits on the alpha, not 32. (at least under OSF)
Try:
uint32 imagelength, imagewidth;
uint32 should be defined as unsigned int on the alpha
(you should double check your version)
> tif = TIFFOpen( filename, "r");
> TIFFGetField ( tif, TIFFTAG_IMAGELENGTH, &imagelength);
> TIFFGetField ( tif, TIFFTAG_IMAGEWIDTH, &imagewidth );
Dan McCoy Pixar mccoy@pixar.com
|
|||||||