title: Displacement map in .Net
body: <p>I have built a Flex application that composes image resources, color layers, blurs etc to generate images (99% of the drink images in <a href="http://www.absolutdrinks.com" rel="nofollow noreferrer">www.absolutdrinks.com</a> are generated by this app). One of the effects used by the app is Flash's ability to apply displacement map filter in which x- and y- offset for an image is defined by a 2D image (sy x offset in the red channel and y offset in the blue channel). This is used to get the bulge of garnishes placed in the liquid of the drink.</p>
  
  <p>I am now looking for a way to do this image generation server side (and possibly in a Silverlight app). I can see ways to reproduce all features of the Image generation app except for the displacement map filter. Is there any way to do this via the controls in the Windows.Media namespace? If not: are there any other ways?</p>