Thanks, that worked. I had a bug earlier due to which I was looking at the wrong SVG. thanks, sriram ----- Original Message ----- From: "Vincent Hardy" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 10:13 AM Subject: Re: setting with and height for SVG
> 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" <[EMAIL PROTECTED]> > > To: "Batik Users" <[EMAIL PROTECTED]> > > 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
