On Wednesday, May 30, 2007 5:34 PM Oliver Saggau wrote

>I found following article on the internet:
> http://www.imagemagick.org/Usage/distorts/#map_trapezoidal
>
> The article discribes how to use 2D distortion map to scale each row of
> an image so it has a trapezoidal look. But I couldn't get this to work
> with SVG's displacement map.

I think the trick using displacement is that one would typically use a 
gradient to provide the distortion.

See for example 
http://srufaculty.sru.edu/david.dailey/svg/newstuff/filterDisplacementMap5a.svg

However the only types of gradients one has in SVG are radial and linear. 
Hence defining a truly trapezoidal shape through a greyscale map is not 
going to happen using a simple gradient. One could stitch together several 
piecewise - linear maps to simulate a trapezoidal one and then apply that --  
or one could sample a subset of a radial gradient that mimics a trapezoid I 
think. And of course one could build a trapezoidal gradient with script by 
hooking simple monochromatic paths together.

This example http://srufaculty.sru.edu/david.dailey/svg/waves.html uses 
scripted gradients to provide a distortion -- it may give an idea of what 
I'm trying to say.

David 




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to