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 2008

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

2008.02.11 15:52 "Help with TIFFWriteScanline()", by James Sumners
2008.02.11 16:33 "Re: Help with TIFFWriteScanline()", by James Sumners
2008.02.11 16:38 "Re: Help with TIFFWriteScanline()", by James Sumners
2008.02.11 17:20 "Re: Help with TIFFWriteScanline()", by Chris Cox
2008.02.12 02:31 "Re: Help with TIFFWriteScanline()", by James Sumners
2008.02.11 17:29 "Re: Help with TIFFWriteScanline()", by Gerben Vos
2008.02.11 17:11 "Re: Help with TIFFWriteScanline()", by Gerben Vos

2008.02.11 16:38 "Re: Help with TIFFWriteScanline()", by James Sumners

How about I keep answering my own questions? Does that work for everyone :)

I see that I was confusing BitsPerSample with SamplesPerPixel. If I
understand this correctly, 2 SPP would mean it takes 2 "pixels" to
represent 1 pixel at 1 SPP? And BitsPerSample is the integer value
limit for each sample?

On Feb 11, 2008 11:33 AM, James Sumners <james.sumners@gmail.com> wrote:
> After browsing the mailing list archives I found out about the
> tiffinfo tool. tiffinfo reported that my original image had a
> SamplesPerPixel of 1. For some reason, unbeknownst to me, my program
> is getting a value of 0 for SamplesPerPixel from the original image.
> So I manually set the value to 8, because that is what I understand
> the specification to be (8 or 16 SPP for grayscale/color and 1 SPP for
> bilevel). After changing my manual SPP value from 8 to 1 the copied
> image is written correctly.
>
> This is the first time I've done any graphics programming. So I'm sure
> that I am not understanding something. Would someone please explain
> this situation to me? Would 8 SPP squeeze the image into a smaller
> space? How is 1 SPP producing a grayscale image?

-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59