> Looks like the Level is actually 2 though I am not sure.

I take that back - Level 2 supports DCTDecode so far although there are
caveats (limited baseline JPEG only)
I shouldn't have replied while in a hurry and 5 minutes late for a meeting.

The problem is that the way this implemented internally right now
relies on a code path in which JDK doesn't have the JPEG source image
and doesn't know its a JPEG, so this wasn't an option. Also its going
through a code path which isn't specifically for generating postscript,
so can't take advantage of that filter.

This could with some work be fixed for the specific case of printing
a JPEG image using DocFlavor.INPUT_STREAM.JPEG and probably should be
when we have the opportunity.

>is it possible to get a direct ps dump from a Java 2D graphics JPanel ?

Yes, you can turn a JPanel, or any component UI into postscript.

Component.printAll(Graphics g) can be passed a graphics obtained
when using the SERVICE_FORMATTED.PRINTABLE doc flavor.


ie you implement java.awt.print.Printable as calling
jpanel.printall(g)  and specify the Printable object as the print data.

-phil.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to