xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza" <grm7...@yahoo.com>
Subject Re: How to apply scaling?
Date Thu, 29 Apr 2004 20:48:18 GMT
I don't know if Batik itself can help you here.  But XSLT may be a solution for you. 

Two XSLT possiblities:

1.  Applying the transform scaling value to all possible elements within the group.  Probably
quite complicated, however.

2.  A simpler solution--namely set the scale() via an xsl:param element, and make different
settings of that element at runtime to adjust to the desired scaling.

  ----- Original Message ----- 
  From: Paul Krasucki 
  To: batik-users@xml.apache.org 
  Sent: Thursday, April 29, 2004 2:41 PM
  Subject: How to apply scaling?

  I would like to read svg file and apply scaling transform to it, but not by adding say <g
transform="scale(.5, .5)"> but by actually applying transform to the tree and saving the
result as a new file in which there is no transform, but the image is half of the size.

  Is there a simple way of doing it with batik?





View raw message