FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1200 : Enhancement request: Let size() resizing the window at any time.
Last modified: 2010-06-05 03:12
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
cloister
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2009-03-12 09:49
It would be really nice, for sketches that operate on image files drawn from a
directory, to support the ability to call size() at any time to resize the sketch window.
E.g., a simple slideshow program:
PImage curImage;
void setup()
{
noLoop();
getNextImage();
}
void mousePressed()
{
getNextImage();
redraw();
}
void getNextImage()
{
// get next image filename
String filename = ...;
PImage curImage = loadImage(filename);
}
void draw()
{
size(curImage.width, curImage.height);
image(curImage, 0, 0);
}
Additional Comment
#1 From fry 2010-02-17 20:36
does setSize(w, h) work?
Additional Comment
#2 From fry 2010-06-05 03:12
no response, closing bug.