silverlightimagebrush

Clipping Path on an ImageBrush in Silverlight


Is there a way to put a clipping path on an ImageBrush in Silverlight (not an Image)? I don't see it available from Intellisense, but I'm wondering if there may be a way to do this.


Solution

  • Yet another unpopular "No" answer. The answer is: there is isn't a way to do this.

    One possible work around if its vital to create such a brush might be to use a WriteableBitmap. Render an Image using the original source plus the Clip onto a WriteableBitmap then use it as the source to an ImageBrush.