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
PImage ... RGBA (Read 1216 times)
PImage ... RGBA
Aug 23rd, 2005, 10:53pm
 
Should this not be able to work?
(it does work for RGB and ALPHA)

Code:
void setup() {
PImage eTest = new PImage(new int[width*height], width, height, RGBA);
background(eTest);
}
Re: PImage ... RGBA
Reply #1 - Aug 23rd, 2005, 11:53pm
 
Try ARGB Smiley


P.S Don't forget to set the size before you run that chunk, but I guess you know that already.
Re: PImage ... RGBA
Reply #2 - Aug 24th, 2005, 9:18am
 
Is it now ARGB?... then this page should be updated: http://processing.org/reference/PImage.html
It still says: "format   Either RGB, RGBA, ALPHA (grayscale alpha channel)".
Re: PImage ... RGBA
Reply #3 - Dec 9th, 2005, 7:55am
 
The page is now updated. Thank you for reporting the problem.
Page Index Toggle Pages: 1