Form manipulation from a Plugin

Bob Arning arning at charm.net
Mon Apr 7 15:22:41 UTC 2003


On Mon, 7 Apr 2003 10:36:23 -0400 (EDT) <diegogomezdeck at consultar.com> wrote:
>But I still don't find the way to get the alpha part of pixel. With this
>code:
>
>   alpha := (pixel bitAnd: 16rFF000000) >> 24.
>
>alpha is always 0.  Is It the way to get the alpha part for pixels in 32
>bits Forms?

Diego,

Are you sure there is a non-zero alpha? Sometimes 32-bit forms are used more like 24-bit and ignore the alpha, so there might simply be nothing there for you code to see.

Cheers,
Bob



More information about the Squeak-dev mailing list