[BUG?] rgbMap:from:to:

Bob Arning arning at charm.net
Wed Sep 15 12:34:23 UTC 1999


In exploring copying from 16-bit forms to 32-bits, I encountered the following:

mapping a 16-bit pixel to 32-bit leaves the alpha byte zero which makes the pixel effectively transparent. Wouldn't it be a good idea in such cases to return a 32-bit value with the alpha byte = 16rFF since all 16-bit colors (except 0) are opaque?

Cheers,
Bob





More information about the Squeak-dev mailing list