proper way to go from PGraphics to PImage?
in
Programming Questions
•
1 year ago
atm i have this, it works but i have my doubts by the method:
- pg.beginDraw();
- pg.background(255);
- pg.imageMode(CENTER);
- pg.image(tmpImg, width/2, height/2, tmpImg.width*s, tmpImg.height*s);
- pg.endDraw();
- img = createImage(width, height, RGB);
- img.pixels = pg.pixels;
1