Hi Keiti,

Keiti <keit.isen...@web.de> wrote on 07/07/2011 05:29:41 AM:

> I want to load a svg file into the SVGCanvas. This works fine, but 
> the image is centered. I´d like it to be on the top left corner.
> Any ideas how to do that?

        You could override batik.swing.svg.JSVGComponent.
calculateViewingTransform
so it returns a transform that places the document in the top left corner
rather than centered. 

        Alternately you could set your preserveAspectRatio attribute on 
the 
SVG Content the right way since that attribute specifies how the document 
should be placed in this case.  The current calculateViewingTransform 
simply 
implements that part of the SVG specification.
Thomas DeWeese | CDG Advanced Development | 
Eastman Kodak Company | 343 State Street | Rochester, NY 14650-0128 | 
thomas.dewe...@kodak.com | 585 724-0294 | 
www.kodak.com 

Reply via email to