Hi,
I spent some days on trying to figure out the transformations on my image.
I have my image and it should be rotated (-90 degrees around the center),
scaled (to fit the image sizes again) and translated (to the right
position).
I first transform, then scale, and finaly rotate the image:
<!-- Draw the tiff image -->
<svg:g transform="translate({$svg_image_width_first},
{$svg_image_height_first})">
<svg:g transform="rotate({$tiff_rotation}, {$tiff_width_middle},
{$tiff_height_middle})">
<svg:g transform="scale({$scale})">
<svg:image xlink:href="{$xml_bitmap_path}"
width="{$svg_image_width}"
height="{$svg_image_height}">
<svg:title>Front Image</svg:title>
</svg:image>
</svg:g>
</svg:g>
</svg:g>
The image is rotated and scaled fine, but the place of the image is not
correct yet.
I understand that the scaling and rotating changes the coordinate system,
that's why I perform the tranlate first.
In a more concrete case translate(51, 114).scale(1,25).rotate(-90) I even
calculated the transformation matrix, to see if it could be useful, but it
didn't show me anything usefule.
Can anyone give me a hint to where to look, or how I can solve this problem/
Thanks again,
Chantal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]