Re: Drawing images with PDFDocumentGraphics2D

2003-03-27 Thread Keiron Liddle
I was curious and tried your code. Look like the drawImage method in question isn't implemented in PDFGraphics2D.java. This is fixed in cvs, just moved some code. I modified your code and got a image in PDF when I did the following: while(!PDFGenerator1.drawImage(img, 400, 300,

Re: Drawing images with PDFDocumentGraphics2D

2003-03-27 Thread jcplerm
Thanks a lot for your help. That worked indeed! Julio - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 3:50 AM Subject: Re: Drawing images with PDFDocumentGraphics2D I was curious and tried your code. Look like

Re: Drawing images with PDFDocumentGraphics2D

2003-03-27 Thread jcplerm
Thanks, Keiron! - Original Message - From: Keiron Liddle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 6:07 PM Subject: Re: Drawing images with PDFDocumentGraphics2D I was curious and tried your code. Look like the drawImage method in question isn't

Re: Drawing images with PDFDocumentGraphics2D

2003-03-26 Thread Keiron Liddle
Hi, The ImageObserver is used in the getWidth, getHeight and drawImage methods with the image that is passed in. So in a sense it depends on the img that you are passing in. The observer is an object waiting for the image to be loaded. How are you creating the image, can you get an abserver

Re: Drawing images with PDFDocumentGraphics2D

2003-03-26 Thread jcplerm
: Wednesday, March 26, 2003 5:02 PM Subject: Re: Drawing images with PDFDocumentGraphics2D Hi, The ImageObserver is used in the getWidth, getHeight and drawImage methods with the image that is passed in. So in a sense it depends on the img that you are passing in. The observer

Drawing images with PDFDocumentGraphics2D

2003-03-25 Thread jcplerm
How can I obtain an "java.awt.ImageObserver" that I can pass to one of the "drawImage" methods of PDFDocumentGraphics2D? Example: pdfgen = new PDFDocumentGraphics2D(true,System.out,800,1100); ... pdfgen.drawImage(img,100,100,50,50,imgObserver); With a pure AWT application, I would