To all,

For an arbitrary image in any color space of type ColorSpace.TYPE_RGB (actually, any arbitrary RGB image decoded by JAI's com.sun.codec decoders... if that matters), will ColorModel's getComponents( Object, int[], int ) method always return the alpha (if present) as the last component? If not, how does one determine which color/alpha component is alpha?

Some background: I am performing a linear color conversion ( ( red + green + blue ) / 3 ) and cannot use ColorModel's getRed, getGreen, and getBlue methods b/c they scale to 8bit.

Thanks in advance.

--
Andrew M. Sheridan
LumenIQ, Inc.
[EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to