The reference to the resize method why it doesn’t work. The alternative is to create a Pimage form it first like this
Pimage img = pg.get(); // where pg is a PGraphics object
img.resize(pg.width/2, pg.height/2); // 50% original size
The reference to the resize method why it doesn’t work. The alternative is to create a Pimage form it first like this
Pimage img = pg.get(); // where pg is a PGraphics object
img.resize(pg.width/2, pg.height/2); // 50% original size