You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Larry Ai <la...@yahoo.com> on 2003/07/23 20:20:08 UTC
scalable/resizable svg image
I draw an image on a SVGGraphic2D and output the
image in svg using SVGGraphic2D.stream to a file.
I, later, load that image in a Jframe and want to
make the structure resizable when user resizes the
frame.
Currently I can only display a fix size image and
could anyone tell me how to make it resizable?
Thanks!
Larry
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: scalable/resizable svg image
Posted by Larry Ai <la...@yahoo.com>.
Tomas,
Thanks for your reply.
Larry
--- tomas lin <to...@hotmail.com> wrote:
> To fit your JSVGCanvas to the frame, set the
> LayoutManager of the frame's
> contentPane to BorderLayout and add the canvas with
> add( <canvas> ,
> BorderLayout.CENTER );
>
> The canvas will fit the image to the frame and
> resize automatically with the
> frame.
>
> Is this what you're looking for?
>
> ----- Original Message -----
> From: "Larry Ai" <la...@yahoo.com>
> To: <ba...@xml.apache.org>
> Sent: Wednesday, July 23, 2003 2:20 PM
> Subject: scalable/resizable svg image
>
>
> >
> > I draw an image on a SVGGraphic2D and output
> the
> > image in svg using SVGGraphic2D.stream to a file.
> >
> > I, later, load that image in a Jframe and want
> to
> > make the structure resizable when user resizes the
> > frame.
> >
> > Currently I can only display a fix size image
> and
> > could anyone tell me how to make it resizable?
> >
> > Thanks!
> >
> > Larry
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> batik-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail:
> batik-users-help@xml.apache.org
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> batik-users-help@xml.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: scalable/resizable svg image
Posted by tomas lin <to...@hotmail.com>.
To fit your JSVGCanvas to the frame, set the LayoutManager of the frame's
contentPane to BorderLayout and add the canvas with add( <canvas> ,
BorderLayout.CENTER );
The canvas will fit the image to the frame and resize automatically with the
frame.
Is this what you're looking for?
----- Original Message -----
From: "Larry Ai" <la...@yahoo.com>
To: <ba...@xml.apache.org>
Sent: Wednesday, July 23, 2003 2:20 PM
Subject: scalable/resizable svg image
>
> I draw an image on a SVGGraphic2D and output the
> image in svg using SVGGraphic2D.stream to a file.
>
> I, later, load that image in a Jframe and want to
> make the structure resizable when user resizes the
> frame.
>
> Currently I can only display a fix size image and
> could anyone tell me how to make it resizable?
>
> Thanks!
>
> Larry
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org