Sorry to follow up on my own post...

>>>>> "TD" == Thomas E Deweese <[EMAIL PROTECTED]> writes:

>>>>> "HH" == Huang Haitao-G17843 <[EMAIL PROTECTED]> writes:
HH> Should we directly pass in color bit depth instead of number of
HH> colors?  In my application it's actually easier more natural to
HH> just pass in the bit depth than number of colors.

TD>     This isn't quite as flexible, but I don't have strong feelings
TD> as the number of colors is almost certain to be one of 2,4,16,256
TD> (corresponding to 1,2,4,8 bits).

    I think you still want to do the computation I outlined as in some
cases the image may have less than 128 colors in which case you really
do want just a 7 bit image.  So even if the user requests a 8bit image
the number of bits should be based on the final number of colors the
pallet has.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to