FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   image(BGraphics,int,int) does not draw
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: image(BGraphics,int,int) does not draw  (Read 1807 times)
narain


image(BGraphics,int,int) does not draw
« on: Aug 6th, 2004, 3:24pm »

This code creates a new BGraphics object, draws an ellipse on it, then draws the BGraphics object on the canvas.
 
Code:
BGraphics myG = new BGraphics(width,height);
myG.ellipse(20,20,60,60);
image(myG,0,0,myG.width,myG.height);  // this works
//image(myG,0,0);  // but this doesn't

 
If you remove the size parameters from the image() call, it does not draw the BGraphics object.
 
(Its width and height members have the right values, though, otherwise the sketch wouldn't work even with these parameters.)
 
v0068, Win ME.
 
fry


WWW
Re: image(BGraphics,int,int) does not draw
« Reply #1 on: Sep 2nd, 2004, 8:43pm »

ah, bugs in undocumented features
 
good find tho, it should be a simple fix.
 
fry


WWW
Re: image(BGraphics,int,int) does not draw
« Reply #2 on: Sep 21st, 2004, 3:30am »

the temporary fix is to add the line:
myG.format = RGB;
or myG.format = RGBA;
 
but i've fixed it for megabucket so RGB will already be set as the default.
 
Pages: 1 

« Previous topic | Next topic »