Hi I have a sketch for a print canvas with a huge dimension of 7078x7087 pixels. I want to draw on it and I want to have the whole view of the sketch. My question is can I resize the sketch window without cropping it more like a zoom out option. Thanks
Answers
Use PGraphics.
How exactly? :O
Draw whatever you want on the PGraphics buffer. Then display it in your sketch window with image(buffer, 0, 0, width, height).
If you provide some code, I'll tell you what to do.
void setup () { size (7087, 7087); background (255);
}
void draw(){ ellipse (mouseX, mouseY, 50,50);
}
This demo shows digital zoom. Click on the sketch to toggle between full image, zoom factor 1 or zoom factor 2. Notice the mouse coordinate system is not properly map when zoomed in.
Kf
Modified @kfrajer's code to allow a PGraphics object with twice the dimensions of the sketch window.