Hello,

Thanks for your help.  I'm not quite sure what your snippet code is doing:

<g transform="translate(60,45)">
   <image x="-50" y="-25" width="100" height="50"
          xlink:href="image.png"/>
</g>

I'm guessing is that you first translated to the opposite filp point and
then flip it using the transform in the group element?  I tried something
similar to that, I first translate my image to (0,0) then flip it then
translate it back.  I've found this method on dev.opera's article on svg
evolution.  This method seems to be working... at least for now.  Thanks for
your help.

vyang


G. Wade Johnson wrote:
> 
> On Tue, 17 Apr 2007 09:51:37 -0700 (PDT)
> 
> Okay. Now I believe I can help. The "problem" is that scaling changes
> both the "size" and the coordinates. The approach I've used in the past
> is to decouple these.
> 
> Let's say you have an image with a width of 100 and a height of 50 at
> 10,20 that you want to flip around a vertical axis.
> 
> <image x="10" y="20" width="100" height="50" xlink:href="image.png"/>
> 
> If you try to scale it with scale(-1,1), you get the equivalent of
> 
> <image x="-10" y="20" width="100" height="50" xlink:href="image.png"/>
> 
> with the image reversed.
> 
> Instead, convert the snippet above to:
> 
> 
> <g transform="translate(60,45)">
>    <image x="-50" y="-25" width="100" height="50"
>           xlink:href="image.png"/>
> </g>
> 
> Now, you can add a transform="scale(-1,1)" to reverse the image in
> place without moving it.
> 
> There are probably other ways to do this, but I have found the
> technique effective for both scaling and rotations.
> 
> G. Wade
> -- 
> You should never hand someone a gun unless you're sure where they'll
> point it.             -- Jeffrey Sinclair in "By Any Means Necessary"
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Image-flipping-mirror-tf3572093.html#a10066569
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