Does anybody have any experience with the inner workings of libtiff?

I'm trying to use the libtiff library, but am having some problems and
was wondering if anybody could clarify something...

I have a small image with the following information:

Image #0: TIFF Directory at offset 0x8
  Subfile Type: (0 = 0x0)
  Image Width: 32 Image Length: 32
  Resolution: 1, 1 (unitless)
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: RGB color
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 4
  Rows/Strip: 4
  Planar Configuration: single image plane

When I call TIFFRGBAImageBegin(...), I find that it's setting the
"put" routine to be "putRGBcontig8bittile" since img->alpha == 0
due to extrasamples == 0.  As far as I can tell, the routine
I need to be used is "putRGBAAcontig8bittile".

Has the image been encoded wrong (i.e. should "ExtraSamples" be
set to non-zero when alpha values are included)?  It was written by a
major graphics package (Adobe Illustrator or something similar).

Have I just misunderstood something in the use of libtiff?

Am I making any sense at all?  <grin>

                                          Brian
                                 ( [EMAIL PROTECTED] )

-------------------------------------------------------------------------------
 The squeaky wheel doesn't always get the grease.  Sometimes it gets replaced.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to