Thanks Oleg. I prefer vector graphics on principle. The lines are typically not fine, but must be accurately placed - by "jaggedness" I mean that if (e.g.) you store the 2D-LinePatterns plot as EPS or PDF and magnify the result, you'll find the individual line segments don't lie on smooth curves. Similarly for EMFs - see my reply to Devon McCormick.
I can continue using bitmaps with roll-my-own algorithms. In particular, my dashed and dotted lines use cumulative arc length to assign individual segments, and look much better than most readily available alternatives. The final PNG files aren't excessively big, and I haven't yet needed very fine pens + anti-aliasing. I'll report back eventually. I still hope to investigate EMFs, if I can get glfile (or its equivalent) to work. J.E.H.Shaw http://www.warwick.ac.uk/statsdept Ewart Shaw http://www.ewartshaw.co.uk -----Original Message----- From: [EMAIL PROTECTED] on behalf of Oleg Kobchenko Sent: Wed 24/10/2007 23:54 To: Programming forum Subject: Re: [Jprogramming] High quality graphics files (& glfile) Could it be clarified what is needed - high resolution bitmap graphics (BMP, not EPS) OR - vector graphics (EPS or PDF) with fine lines ? And what exactly is jaggedness? For the fine vector graphics for example, in the Demo page Studio|Demos|plot|2D-LinePatterns set pd 'pensize 0.001' then save to EPS (Options|Save EPS) and it will produce very thin lines. For bitmap graphics, you can roll your own antialiasing: - pd 'pensize 2' use thick lines - and 'save bmp [file] [w h]' i.e. huge w h - resize 0.25 or so times with nice resampling like Lanczos. which will produce thin and smooth lines. Would you be looking for bitmap renderer that produces antialiased output by itself like GDI+/Cairo/Quartz/Java2D? ... ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
