434435436437438439440441442443444
PGraphicsJava2D snap = (PGraphicsJava2D) winApp.createGraphics(buffer.width, buffer.height, PApplet.JAVA2D); snap.beginDraw(); snap.image(buffer,0,0); if(hsb != null){ snap.pushMatrix(); snap.translate(hsb.getX(), hsb.getY()); snap.image(hsb.getBuffer(), 0, 0); snap.popMatrix(); } if(vsb != null){ snap.pushMatrix();
440441442443444445446447448449450
snap.image(hsb.getBuffer(), 0, 0); snap.popMatrix(); } if(vsb != null){ snap.pushMatrix(); snap.translate(vsb.getX(), vsb.getY()); snap.rotate(PApplet.PI/2); snap.image(vsb.getBuffer(), 0, 0); snap.popMatrix(); } snap.endDraw();
203204205206207208209210211212213
PGraphicsJava2D snap = (PGraphicsJava2D) winApp.createGraphics(buffer.width, buffer.height, PApplet.JAVA2D); snap.beginDraw(); snap.image(buffer,0,0); if(hsb != null){ snap.pushMatrix(); snap.translate(hsb.getX(), hsb.getY()); snap.image(hsb.getBuffer(), 0, 0); snap.popMatrix(); } snap.endDraw(); return snap;