User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416
I suspect that what I would like to do isn't really feasible in
Eclipse/SWT; however,
I create an html page dynamically that is rendered very nicely by
org.eclipse.swt.browser.Browser. What I need to do is save the page as
an image at 300 dpi rather than the display.getDPI() which is 72 or 96.
I've tried various approaches including writing the image out at display
resolution and then resampling with ImageMagick and some java.awt tools
all of which produce thoroughly icky results.
I looked at the org.eclipse.swt.graphics.Transform and get nowhere since
I can't see how to associate a Transform with the Browser (which I
assunme somewhere along the line is involved with a GC). I thought that
perhaps I could use a scaling transform so that when the Browser renders
it would be on to an effective area equivalent to 8.5" x 11" at 300 dpi
(i.e., 2550 x 3300).
If anyone has some thoughts on how to approach the problem or knows that
it just isn't possible within SWT then I'd very much appreciate the
feedback.
I'd also add that the JFrame html capability isn't able to handle the
fonts that I'm working with whereas the SWT Browser (3.1.1 on Mac OX X
10.4.3) is. Otherwise I'd have a usable awt based solution.