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.
IndexSuggestions & BugsSoftware Bugs › PGraphics(2) bugs
Page Index Toggle Pages: 1
PGraphics(2) bugs (Read 2437 times)
PGraphics(2) bugs
May 3rd, 2005, 4:32am
 
As mentioned in a previous post (and verified again in 0086), it seems that the PGraphis2 class is being difficult:

Code:
PGraphics2 img = new PGraphics2(220, 176, null);
img.loadPixels();
img.background(255, 0, 0);
image(img, 0, 0);


Expect a red background? Think again.

(Also tested with PGraphics and PGraphics3...)
Re: PGraphics(2) bugs
Reply #1 - May 3rd, 2005, 5:22am
 
yup, i haven't had time to fix this stuff yet. i'll be adding something called createGraphics() and make a note of the changes in the release notes once i get it fixed.
Re: PGraphics(2) bugs
Reply #2 - Jun 20th, 2005, 11:33am
 
I've come across this, and found the answer by looking at othe r people's code.

you need to add the line:
img.defaults();

straight after the line where you create the img object.
Re: PGraphics(2) bugs
Reply #3 - Jul 28th, 2005, 3:54am
 
this keeps coming up so i've filed a bug to track it:
http://dev.processing.org/bugs/show_bug.cgi?id=92
Page Index Toggle Pages: 1