What is the purpose of the resize() method in PGraphics if it doesn't work?

maybe it depends on the version? or it didn’t work from the start?

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
1 Like

yes, I know it makes sense for PImage and it works.
but this method is also available for PGraphics itself

“Follow the white rabbit.”
Alice in Wonderland & Morpheus in The Matrix

Source code has a comment about this:

:)

2 Likes