resize() larger
in
Programming Questions
•
8 months ago
Hi folks,
A simple question: Is resize() supposed to be able to make images larger or not? The below code causes the code to apparently not compile. There is no error in the console but the app window doesn't open. Changing to resize smaller or commenting the line causes it to work fine. The reference makes no mention of this restriction. Thanks, Tom
PImage test;
void setup() {
size(355, 355);
test=loadImage("1.png");
test.resize(test.width*2, test.height*2);
}
void draw() {
image(test, 0, 0);
}
1