I am working on a bit of code, and have recently put in the createGraphics() function. When saving the image created by createGraphics, my resolution is doubled.
print(graphics.width); //gives me 800 - the correct width. print(graphics.height); //gives me 600 - the correct height.
after saving the image my dimensions are 1600x1200. This was not the case when I was defining the image from the canvas 0,0 point (not using createGraphics).
My goal with using createGraphics is that I could manipulate where the image is on the screen and save it at its correct resolution wherever it may be located.
quickly made another sketch with nothing else in it to demonstrate the issue.