Hi Phil, >On Wed, 19 Feb 2003 13:09:34 -0800, Phil Race <[EMAIL PROTECTED]> wrote:
>> 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. :) I can easily relate to that feeling. Anyways, I very much appreciate the excellent technical support that I am getting. > >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. A little curious about your choice of the word *specific* ! Is there anything about JPEG-Postscript that your printing enhancement will work for JPEG only ? - i.e. is it meaningful to look for such an enhancement to GIF-PS / PNG-PS assuming that these also produce huge outputs currently and that there avenues for size reduction for these formats too ? > >>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. > OK ! That's great. Now, the postscript output from the JPanel, for example, would be a true ps output or would there be a behind-the-scenes bitmap conversion ? If there is an example somewhere on the Sun Java site I'd love to see it ! OTOH, it might be a good opportunity for me to try to dig in and get my feet wet. Once again, appreciate your help Vaidya =========================================================================== 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".
