Bug 1200 : Enhancement request: Let size() resizing the window at any time.
Last modified: 2010-06-05 03:12




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

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.