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,
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
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
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
: 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
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