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.
IndexProgramming Questions & HelpSyntax Questions › importing image with alpha
Page Index Toggle Pages: 1
importing image with alpha (Read 594 times)
importing image with alpha
Sep 9th, 2005, 1:01pm
 
is there a way to import an image with alpha channel that's not a gif? cause the diffusion in gif is just too ugly, so wondering if anyone knew of a way to import maybe a tiff and have the alpha apply? or a trick? wait.. hmm, wonder if i can import the same thing but then...nope nevermind, so yeah, if anyone knows of a trick, let me know.
Re: importing image with alpha
Reply #1 - Sep 9th, 2005, 1:16pm
 
Hi monk3ybutts,

You could import the image without the alpha and then create your own alpha programatically using the PImage mask() function or apply another image or the same image as the alpha.

see reference
http://processing.org/reference/PImage_mask_.html

using image as alpha - example code :
http://processing.org/learning/examples/alphamask.html

hope that helps,

james
Page Index Toggle Pages: 1