xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hardy <vincent.ha...@sun.com>
Subject Re: setting with and height for SVG
Date Wed, 22 May 2002 14:13:08 GMT
Sriram,

Could you give more details? If you have a look at SVGGraphics2D.getRoot
and SVGGraphics2D.stream(), you'll see that the width/height attributes
are set. One thing to remember is to set the canvas size *before* doing
a
getRoot.

V.

Sriram Nookala wrote:
> 
> I tried that and it still doesn't set the height and width in the SVG XML.
> thanks,
> sriram
> ----- Original Message -----
> From: "Vincent Hardy" <vincent.hardy@sun.com>
> To: "Batik Users" <batik-users@xml.apache.org>
> Sent: Wednesday, May 22, 2002 2:46 AM
> Subject: Re: setting with and height for SVG
> 
> > Sriram,
> >
> > See the setSVGCanvasSize(java.awt.Dimension svgCanvasSize) method
> > on SVGGraphics2D.
> >
> > Thanks,
> > Vincent.
> >
> > > Sriram Nookala wrote:
> > >
> > > I'm trying to set the width and height for the SVG generated by the
> > > SVGGraphics2D since otherwise the default image is 400x400 and the
> > > image gets clipped off. How do I do this programmatically? I tried
> > > using the getRoot method of the SVGGraphics2D and manipulating the DOM
> > > to add the "height" and "width" attributes, but that messed up the
> > > created SVG DOM.
> > > thanks,
> > > sriram
> >
> > ---------------------------------------------------------------------
> > 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

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message