We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Creating own alpha channel - how? (Read 778 times)
Creating own alpha channel - how?
Mar 24th, 2010, 9:24pm
 
Hi,

I would like to generate my own image object by grabbing sections of the display buffer. i think this will be pretty easy.

the thing is I also need to generate an alpha channel to go with those pixels. I know how i can generate the actual mask, but can anyone give me a hint on how I would integrate that mask with my PImage object?

thanks you
Re: Creating own alpha channel - how?
Reply #1 - Mar 25th, 2010, 9:38am
 
PImage img = ...
PImage mask = ...

img.mask(mask);

Does that help? Check the docs for PImage.

-spxl
Re: Creating own alpha channel - how?
Reply #2 - Apr 21st, 2010, 6:20am
 
subpixel wrote on Mar 25th, 2010, 9:38am:
PImage img = ...
PImage mask = ...

img.mask(mask);

Does that help Check the docs for PImage.

-spxl



exactly the solution i came up with JUST after writing this post! Cheesy but thanx x10 subpixel Smiley
Page Index Toggle Pages: 1