Examples of beginDraw()


Examples of processing.pdf.PGraphicsPDF.beginDraw()

    PGraphicsPDF pdf = (PGraphicsPDF) a.createGraphics(
        (int) (this.materialWidth), (int) (this.materialHeight), a.PDF);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    pdf.setOutput(out);

    pdf.beginDraw();
    //pdf.scale(pdf_pixels_per_mm );

    pdf.strokeWeight(.0001f);
    pdf.stroke(255, 0, 0);
View Full Code Here

Examples of processing.pdf.PGraphicsPDF.beginDraw()

    PGraphicsPDF pdf = (PGraphicsPDF) a.createGraphics(
        (int) (this.materialWidth), (int) (this.materialHeight), a.PDF);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    pdf.setOutput(out);
  //  pdf.textSize(this.textSize);
    pdf.beginDraw();
    //pdf.scale(pdf_pixels_per_mm );

    pdf.strokeWeight(.0001f);
    pdf.stroke(255, 0, 0);
    this.pages.renderPDF(pdf, pdf_pixels_per_mm);
View Full Code Here

Examples of processing.pdf.PGraphicsPDF.beginDraw()

            + functions.getFileName() + ".pdf");
    PFont font = a.createFont("Arial", this.textSize);
    pdf.textFont(font);
    pdf.textSize(this.textSize);

    pdf.beginDraw();
    //pdf.scale(pdf_pixels_per_mm );

    pdf.strokeWeight(.0001f);
    pdf.stroke(255, 0, 0);
    this.pages.renderPDF(pdf, pdf_pixels_per_mm);
View Full Code Here

Examples of processing.pdf.PGraphicsPDF.beginDraw()

        (int) (this.materialWidth * pdf_pixels_per_mm),
        (int) (this.materialHeight * pdf_pixels_per_mm), PConstants.PDF,
        pdfSaveLocation);
   
    LOGGER.info("sending PDF to " + pdfSaveLocation);
    pdf.beginDraw();
    //pdf.scale(pdf_pixels_per_mm);
    pdf.strokeWeight(.0001f);
    pdf.stroke(255, 0, 0);
    //PFont font = a.createFont("Arial", this.textSize);
    //pdf.textFont(font);
View Full Code Here

Examples of processing.pdf.PGraphicsPDF.beginDraw()

      preprocess(t);
      File f = p.outputFile("Save PDF as...");
      p.noLoop();
      PGraphicsPDF canvas = (PGraphicsPDF) p.createGraphics(p.width,
          p.height, PConstants.PDF, f.getAbsolutePath());
      canvas.beginDraw();
      r.render(canvas, 0, 0, canvas.width, canvas.height,true);
      canvas.endDraw();
      canvas.dispose();
      // canvas.save(f.getAbsolutePath());
    } catch (RuntimeException e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.