I think the format for your transform is wrong:
 
transform="translate(x,y), rotate(t)"
 
http://www.w3.org/TR/SVG/coords.html#TransformAttribute 
<http://www.w3.org/TR/SVG/coords.html#TransformAttribute> 
 
Michael

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wed 9/24/2008 4:41 AM
To: batik-users@xmlgraphics.apache.org
Subject: svg:image rotation



Hi,

>From an xml file I read a path of an image and a rotation. Now I want to
display the image and rotate it according to what is in the XML file.

This is the code I use:

<!-- Draw Bitmap -->
<svg:g
transform="translate({$svg_bitmap_width_offset),{$svg_bitmap_height_offset})"
rotation="{$bitmap_rotation}">
  <svg:image x="2" y="2" width="{$svg_bitmap_width}"
height="{$svg_bitmap_height}" xlink:href="{$bitmap_path}">
    <svg:title>Front Bitmap</svg:title>
  </svg:image>
</svg:g>

Now when I view, the image is not rotated.
I tried searching with google, but I can't seem to find anything, and I
begin to wonder if it is possible at all.

Is there, and if yes what is the correct solution to my problem?

Thanks in advance,

Chantal



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



<<winmail.dat>>

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

Reply via email to