Prajakta Bhanage wrote:
> 
> Hi,
> 
> I would like to know if it is possible to give an
> inputstream (in svg format) to JSVGCanvas, perform
> zoom, pan, rotate operations and retrieve the
> transformed image in the form of a w3c xml document ?
> how can this be achieved ?
> 
> -prajakta.
Prajakta:

I am not sure if this can be achieved via JSVGCanvas or not (sounds like
it should happen at the GVT layer), but I would recommend the simpler
approach of using XSLT or an even simpler (sed?) mechanism to add the
transforms to the outermost <g> element in the SVG file. 

Try adding 'transform="scale(0.5, 0.5)"', etc. to your <g> element by
hand:

<svg>
  <g transform="translate(-100,-50) scale (0.5, 0.3) rotate(45)
translate (175, 50)">

  ...
 
  </g>
</svg>

No need to parse the file ;-)

-Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to