Hi PhiLho,
Of course I modified my code according to what I believed was your comment. I tried the following:
Of course I modified my code according to what I believed was your comment. I tried the following:
- PImage img;
- import processing.pdf.*;
- PGraphicsPDF my_pdf;
- void setup(){
- size(500, 375);
- my_pdf = (PGraphicsPDF)createGraphics(500, 375, PDF, "img.pdf");
- my_pdf.beginDraw();
- img = loadImage("15.jpg");
- image(img, 0, 0);
- my_pdf.dispose();
- my_pdf.endDraw(); // stop and save pdf
- //exit();
- }
- void draw(){
- }