Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2308
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: which GUI library to |
| Message-ID | <tkrpc3hnthlei44kibqqjb0ml36776m6i4@4ax.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1187788798.630002.327440@i13g2000prf.googlegroups.com> |
| Date | 2011-04-27 15:38 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On Wed, 22 Aug 2007 13:19:58 -0000, chewie54 <dfabrizio51@gmail.com> wrote, quoted or indirectly quoted someone who said : >Ok, thanks. I actually have the application partially done using >Java/Swing but I'm not sure if I can save to the drawings done with >Java2D to SVG, PDF, and PS, and make high resolution images (PNG, >GIF, JPG), >and also produce WYSIWYG printer outputs? things to check out: http://mindprod.com/jgloss/gifencoder.html http://mindprod.com/jgloss/jpgencoder.html http://mindprod.com/jgloss/printing.html http://mindprod.com/jgloss/jai.html to get PostScript I think your best bet would be to use a PostScript printer driver and write to a file. The PS is going to be pretty ugly compared with what you would generate directly. SVG I don't know about. What you might try there is converting captured printer metafile output if you can't find a more direct solution. The approach I would use is to create some high level drawing tools that are basically just wrappers for some subset of the Sun drawing tools, and do my drawing with them. Then I could slip in implementations that emit clean SVG and PS, using a custom PS prelude to keep the code terse and readable. I prefer that approach since it is 100% under my control, and the code won't stop working if something inside Java or metafiles changes. The only really tricky part then is converting images to PS image format and compressing them. You might dig around in http://mindprod.com/jgloss/ps.html or http://mindprod.com/jgloss/pdf.html for tools to handle that. -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
which GUI library to use? "chewie54" <chewie54@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: which GUI library to "Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: which GUI library to "chewie54" <chewie54@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: which GUI library to "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: which GUI library to "chewie54" <chewie54@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: which GUI library to "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: which GUI library to "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
csiph-web