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
pass the java.awt.Panel whose "paint"
method invokes "drawImage".
But with PDFDocumentGraphics2D, I don't have
such a Panel object.
Even if I create a surrogate one, the resulting PDF
will not have the images in it.
What can act as the
"ImageObserver"?
Thanks,
Julio Lerm
Chicago, IL
|
- Re: Drawing images with PDFDocumentGraphics2D jcplerm
- Re: Drawing images with PDFDocumentGraphics2D Keiron Liddle
- Re: Drawing images with PDFDocumentGraphics2D jcplerm
- Re: Drawing images with PDFDocumentGraphics2D Jeremias Maerki
- Re: Drawing images with PDFDocumentGraphics2D jcplerm
- Re: Drawing images with PDFDocumentGraphics2D Keiron Liddle