|
Author |
Topic: setting a size for BImage (Read 340 times) |
|
elout
|
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
|
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
|
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)
|
|
|
|
|