Hi V,

vyang <[EMAIL PROTECTED]> wrote on 12/11/2006 02:58:41 PM:

> I copied the renderingTransfrom over using setRenderingTransform.

   Did this do what you want?

> But how would I set the viewBox for the second canvas? 

   document.getRootElement.setAttributeNS(null, "viewBox", "x y w h")

   Where you replace 'x', 'y', 'w', 'h' with your desired viewBox.


> Hi V,
> 
>    You might try setting the viewBox attribute on the second canvas. 
Also 
> if you
> are working in a custom app I think you can do this mostly by copying 
the 
> rendering transfrom from the source canvas and setting it on the 
> destination
> canvas (this might not work quite right if the windows aren't the same 
> size but
> then it get's questionable what it means to "copy the zoom").
> 
> -- 
> View this message in context: http://www.nabble.com/Zoom-Copying-
> tf2795122.html#a7801877
> Sent from the Batik - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to