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_
   Suggestions
   Software Suggestions
(Moderator: fry)
   setting a size for BImage
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: setting a size for BImage  (Read 340 times)
elout

12747371274737 WWW
setting a size for BImage
« on: Oct 1st, 2003, 9:10am »

It should be a nice thing to make something like
Code:

BImage a;
 
void setup() {  
  size(300, 300);
  a=new int[width*height];
}

 
I use dynamic BImage`s for different things, like texturemapping, and now trying it with video. Now I have to load an empty image to do my tricks.
« Last Edit: Oct 1st, 2003, 9:12am by elout »  
toxi

WWW
Re: setting a size for BImage
« Reply #1 on: Oct 1st, 2003, 11:01am »

hey, it's already done and this will be available in the next rev, when you can simply do:
 
BImage a=new BImage(width,height);
« Last Edit: Oct 1st, 2003, 11:02am by toxi »  

http://toxi.co.uk/
fry


WWW
Re: setting a size for BImage
« Reply #2 on: Oct 1st, 2003, 11:51am »

actually, the current rev on the download page has the "new BImage(width, height)" feature. (as originally suggested by toxi)
 
Pages: 1 

« Previous topic | Next topic »