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 › Text in PGraphics
Page Index Toggle Pages: 1
Text in PGraphics (Read 2328 times)
Text in PGraphics
Jun 9th, 2005, 2:02pm
 
I used to write some text in a PGraphics Object but it does'nt work.

Code:

void setup(){
size(500,333);
PFont font=loadFont("Arial.vlw");
PGraphics a=new PGraphics(300,300,this);
a.background(255,255,255);
a.textFont=font;
a.textSize=10;
a.text("ANDREAS",100,100);
image(a,0,0);
}


There are no errors but only a black graphic will displayed.
Re: Text in PGraphics
Reply #1 - Jun 14th, 2005, 8:06pm
 
I second that, just having the exact same problem. Also tried

System.arraycopy( buffer.pixels,0,pixels,0,pixels.length );

( buffer is my PGraphics ).

How can i get a PGraphics object back on screen?
Re: Text in PGraphics
Reply #2 - Jun 15th, 2005, 4:03pm
 
drawing to PGraphics and PGraphics2 are currently a little broken with the beta. they'll be back soon. PGraphics3 might work.

more info:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1113919619
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1113933055
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115087536
Re: Text in PGraphics
Reply #3 - Jul 28th, 2005, 3:58am
 
more information can be found here:
http://dev.processing.org/bugs/show_bug.cgi?id=92
so closing thread.
Page Index Toggle Pages: 1