>>>>> "KN" == Kenji Nakamura <[EMAIL PROTECTED]> writes:
KN> First I take a screenshot and supposed the size is 800x600 pixels.
>> I guess I don't understand where the screenshot comes in, above it
>> sounded like you were using the SVGGraphics2D to convert the
>> contents of your JInternalFrame to SVG.
KN> Yes, I use SVGGraphics2D to generate SVG.
KN> The output raster image size is 400x400 and the contents is
KN> clipped to the size. I supposed giving KEY_WIDTH=800 and or
KN> KEY_HEIGHT=600 would change the clipping size as well as the
KN> output image file size, but what happened with these parameters
KN> was getting the image clipped by 400x400 enlarged to 800x600 size.
KN> I know the 400x400 value is defined at getViewportSize() in
KN> ImageTranscoderUserAgent internal class, but it seems no way to
KN> change it from external.
>> I sounds like the SVG you are feeding to the rasterizer isn't set
>> up properly. In particular you may want to set the viewBox
>> attribute on the outermost SVG element (to something like: "0 0 600
>> 800"). You might also set the width and height on the outermost
>> SVG element. I believe if you used the SVGGraphics2D it should do
>> this for you (not 100% certain).
KN> viewBox attributes seems not to be included SVG generated by
KN> SVGGraphics2D. Here is the first lines of the XML. In this case,
KN> the desirable graphics size is 675x554.
Hmm, try calling:
SVGGraphics2D.setCanvaseSize(new Dimension(600,800));
This will set the width and height attributes on the outermost
SVG. Which I think the rasterizer will use.
Vincent may be able to answer this question better than I tomorrow
(as he did most of the svggen stuff).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]