/** * @param c width to display the image by default * @param d height to display the image by default */ public void image(PImage img, float a, float b, float c, float d) { image(img, a, b, c, d, 0, 0, img.width, img.height); }
/** * Draw an image(), also specifying u/v coordinates. * In this method, the u, v coordinates are always based on image space * location, regardless of the current textureMode(). */ public void image(PImage image, float a, float b, float c, float d, int u1, int v1, int u2, int v2) { g.image(image, a, b, c, d, u1, v1, u2, v2); }
/** * Draw an image(), also specifying u/v coordinates. * In this method, the u, v coordinates are always based on image space * location, regardless of the current textureMode(). * * @nowebref */ public void image(PImage img, float a, float b, float c, float d, int u1, int v1, int u2, int v2) { if (recorder != null) recorder.image(img, a, b, c, d, u1, v1, u2, v2); g.image(img, a, b, c, d, u1, v1, u2, v2); }
public void image(PImage image, float x, float y, float c, float d) { image(image, x, y, c, d, 0, 0, image.width, image.height); }
public void image(PImage image, float x, float y, float c, float d) { g.image(image, x, y, c, d); }
public void image(PImage image, float x, float y) { g.image(image, x, y); }
void drawHDRImage(PGraphics pg) { pg.image(hdrImage, 0, 0, pg.width, pg.height); }
void drawBackgroundImage(PGraphics pg) { pg.image(lenna, 0, 0, pg.width, pg.height); }
/** * Compose and finalize rendering. * * @param graphics Texture to render onto. */ @Override public void compose(PGraphics graphics) { clearPass(graphics); graphics.beginDraw(); graphics.image(getCurrentPass(), 0, 0); graphics.endDraw(); }
/** * Called in Automatic mode to display the image. */ public void draw() { parent.g.background(30, 30, 30); drawScreensOver(); parent.noStroke(); parent.g.image(this.render(), 0, 0, this.drawingSizeX, this.drawingSizeY); // pxCopy = getPixelsCopy(); }
/** * Compose and finalize rendering onto sketch texture. */ public void compose() { if (sketch.g.is3D()) beginHUD(); sketch.g.image(getCurrentPass(), 0, 0); if (sketch.g.is3D()) endHUD(); }
/** * Start a new multi-pass rendering. * * @param graphics Texture used as input. */ @Override public void render(PImage graphics) { PGraphics pass = getNextPass(); clearPass(pass); pass.beginDraw(); pass.image(graphics, 0, 0); pass.endDraw(); increasePass(); }
@Override public void apply(Supervisor supervisor) { PGraphics pass = supervisor.getNextPass(); supervisor.clearPass(pass); pass.beginDraw(); pass.shader(shader); pass.image(supervisor.getCurrentPass(), 0, 0); pass.endDraw(); }
resized.image(movie,0,0,cols,rows); resized.endDraw();
red.image(temp, 0, 0); red.endDraw();
PGraphics glow = createGraphics(200,200); glow.beginDraw(); glow.image(pg,0,0); glow.loadPixels(); glow.fill(255,3);
pg.image(canvas, 0, 0); if (view != null && (viewTask == null || viewTask.isDone()) && hovered && x0 <= mouseX && mouseX <= x0 + w0 &&