AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2007.10.29 15:21 "[Tiff] rookie question", by Ron Croonenberg
2007.10.30 02:27 "[Tiff] Simple code to write Tiff images from Raw data", by Richard Nolde
2007.11.15 02:19 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Ron Croonenberg
2007.11.15 04:37 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Frank Warmerdam
2007.11.15 15:36 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Ron Croonenberg
2007.11.15 15:45 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Frank Warmerdam
2007.10.31 00:01 "[Tiff] Re: Rookie question", by Leonardo Serni
2007.11.15 14:42 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Ron Croonenberg
2007.11.15 11:42 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Jason Tillett

2007.11.15 11:42 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Jason Tillett

Here is my simple code snippet.
have not had any compatibility problems I
maybe I just got lucky so far... but

TIFF *out=TIFFOpen(fn,"w");
width=nx;int height=ny;int sampleperpixel=1; //RGBA=4 bw/gray=1 int
TIFFTAG_IMAGEWIDTH, width); TIFFSetField(out,
TIFFTAG_IMAGELENGTH, height); TIFFSetField(out,
TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG); TIFFSetField(out,
TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK); TIFFSetField(out,
TIFFTAG_BITSPERSAMPLE, 8); TIFFSetField(out,
TIFFTAG_SAMPLESPERPIXEL, sampleperpixel); TIFFSetField(out,
TIFFTAG_ROWSPERSTRIP, ny); TIFFSetField(out,
Write the information to the tiff file //
0, a, width * height * sampleperpixel) == 0){ if(TIFFWriteEncodedStrip(out,
"Could not write image\n"); fprintf(stderr,

 }

TIFFClose(out);