xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Lim <leo.lim....@fedex.com>
Subject Re: resizing on batik
Date Fri, 13 Apr 2007 14:01:21 GMT
Thanks for the reply. I finally figured it out. The viewBox attribute
was indeed set in the svg header, however, I needed to place the property
preserveAspectRatio="none" as well in the header to make the svg image 
> Hi Leo,
>    I suspect the problem is that you haven't provided a viewBox attribute 
> in your
> SVG content.  Without that the canvas doesn't know what should be made to
> fit the window.  I suspect you have arranged for the initial window to 
> match your
> SVG content which is why it comes up fitting the window to begin with.
Leo Lim <leo.lim.osv@fedex.com> wrote on 04/12/2007 12:25:41 PM:
> Hi,
> I?m currently displaying an svg image in a JFrame. At first, the
> image spans the whole frame, however, when I attempt to resize
> the frame, the image isn?t resized with it. Is there some setting
> where we could automatically resize the image to occupy the
> whole window?
> Also found out that this behavior is not in Batik Squiggle. When
> I resize the window, the image does not resize as well.
> Thanks!
> Leo


View raw message