Hi all,
I'm testing out a code snippet which is to be integrated into a big sketch. I just want to test the image quality of the image inside a pdf. It will later be combined with vector output. Here's the code:
I hope someone can help me go just get this image in a pdf. Thanks a lot in advance. Best, d
I'm testing out a code snippet which is to be integrated into a big sketch. I just want to test the image quality of the image inside a pdf. It will later be combined with vector output. Here's the code:
- PImage img;
- import processing.pdf.*;
- PGraphicsPDF my_pdf;
- void setup(){
- size(500, 375);
- img = loadImage("15.jpg");
- image(img, 0, 0);
- my_pdf = (PGraphicsPDF)createGraphics(500, 375, PDF, "img.pdf");
- my_pdf.beginDraw();
- my_pdf.dispose();
- my_pdf.endDraw(); // stop and save pdf
- //exit();
- }
- void draw(){
- }
I hope someone can help me go just get this image in a pdf. Thanks a lot in advance. Best, d