|
Hi Mark,
I also wrestled with a similar problem last
week. Looking into the image export code from Squiggle, it seems that it
uses the offscreen image from the current swing view to produce the exported
image (in PNG or JPG). If the entire image is not visible, it will not be
saved to the image file.
I rewrote these exporters to render their own new
image using the full image size, and not reuse the current offscreen
buffer.
-- Dave Carlson
----- Original Message -----
Sent: Monday, December 09, 2002 11:48
AM
Subject: FW: incomplete
rastorization?
I�m evaluating Batik 1.5beta4b�s
Rasterizer utility but am encountering problems. My goal is to generate
a PDF from an image drawn inside Swing. To that end, I�m using the
SVGGraphics2D class to paint the component�s contents and write image to an
SVG file. The resulting SVG file renders fine inside Internet Explorer
and Squiggle. However, when I try to convert the SVG file to anything
(PDF, JPEG, whatever), only the top quarter (approximately) is
Rasterized.?.? I�ve tried passing in command line arguments such
as:
% java
org.apache.batik.apps.rasterizer.Main -m image/jpg -a 0,0,1000,1000
test.svg. However, the same amount of image is captured. Larger
AOIs just seem to make the final result image smaller. Has anyone ever
encountered this?
|