Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : simple IPimage to PDF doesn't work

$
0
0
Hi all,

As an alternative I tried saving as a tiff. But even that doesn't work. The simple code below just saves a black image.:
  1. PImage img;
  2. PGraphics t;
  3. void setup(){
  4.   size(500, 375);
  5.   t = createGraphics(500, 375, JAVA2D);
  6.   t.beginDraw(); 
  7.   img = loadImage("15.jpg");
  8.   image(img, 0, 0);
  9.   t.endDraw();
  10.   t.save("photo.tif");
  11. }
  12. void draw(){
  13. }
I've also tested with a different image but that doesn't work either. I hope someone can help. Just posting a bit of code that prints a pdf with an image would already be very helpful. Thanks very much in advance for you time and effort. Best, d.

Viewing all articles
Browse latest Browse all 1768

Trending Articles