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
January 1997

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

1997.01.15 06:28 "TIFFWriteScanline", by Rajat Varma
1997.01.15 14:30 "TIFFWriteScanline", by Frank Kim
1997.01.15 21:50 "Re: TIFFWriteScanline", by Scott Beckstead
1997.01.15 15:54 "TIFFWriteScanline", by Adam Jenkins
1997.01.15 21:28 "Re: TIFFWriteScanline", by Ed Grissom

1997.01.15 21:28 "Re: TIFFWriteScanline", by Ed Grissom

I think everyone is missing the boat here, Rajat says he has a "single
plane image"

TIFF 6.0 says...

"If SamplesPerPixel is 1, PlanarConfiguration is irrelevant, and need
not be included"



So the direct answer to his question is 

"Don't set TIFFTAG_PLANARCONFIG at all for single plane images"


--
ed grissom
egrissom@ingr.com

>----------
>From: 	Adam Jenkins[SMTP:ajenkins@boogah.cs.umass.edu]
>Sent: 	Wednesday, January 15, 1997 9:54 AM
>To: 	Rajat Varma
>Cc: 	tiff@sgi.com
>Subject: 	TIFFWriteScanline
>
>Rajat Varma writes:
> > 
> > I am trying to write an image using TIFFWriteScanline.
> > 
> > Using TIFFSetField I could set tags for imagewidth and imagelength, how 
> > do I set the tag TIFFTAG_PLANARCONFIG for a single plane image, rather 
> > what is the tag value for that.
> > 
> > 
>
>TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_SEPARATE);
>for separate planes, or
>
>TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
>for contiguous/single plane.
>
>Adam
>
>-- 
>Adam P. Jenkins
>mailto:ajenkins@cs.umass.edu
>
>University of Massachusetts/Amherst
>Office Number: (413) 545-3506
>