xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Free Distort like Illustrator
Date Sun, 08 Apr 2007 12:45:13 GMT
Hi Depiano,

commence8 <depiano@gmail.com> wrote on 04/03/2007 01:09:48 PM:

> I'd like some help on implementing a "Free Distort" function like the 
one on
> Illustrator.  I can't seem to figure out an algorithm to do this sort of
> black hole effect.  Is something like this already built into Batik's
> libraries?

   No nothing like this is implemented in Batik.  To implement this you
would probably have to flatten the path (see Java GeneralPath methods).
Then define a 2D function that maps points:

        P'.x = Fx(P.x, P.y)
        P'.y = Fy(P.x, P.y)


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message