Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Alpha channel of image! type

From: petr:krenzelok:trz:cz at: 15-Nov-2002 4:48

Claude Precourt wrote:
>Hmmm. That's not what I get at all. The following example session shows that >each pixels is, in fact, stored in 32 bits (test.png does have an alpha >channel): > >>>img: load %test.png >>>== make image! [89x133 #{ >>> >>> >466DB1476EB24970B44B72B64C73B64C73B74B72B64B72B64970B44A71B5 >4B72B64B72B54970B44970B34A71B44B72B64D71BD4C... > >>>first img >>> >>> >== 177.109.70 > >>>second img >>> >>> >== 109.70.0 > >>>third img >>> >>> >== 70.0.178 > >You can see that, using first, second and third, >
So why don't you refer to my examples? ;-)
> I can scroll through the >image's data one byte at a time, and that the fourth element is the fourth >byte of the pixel. So far so good. But then things start to get weird. >First, the value should be 255, as the alpha channel is white in the image, >and second, I don't have access to the fourth component of the pixel: >
Go and download 1.2.8 version of View .... -pekr-