Clip a 4:3 image in WPF with a circle

Posted by reckoner on Stack Overflow See other posts from Stack Overflow or by reckoner
Published on 2010-05-27T12:49:45Z Indexed on 2010/05/27 12:51 UTC
Read the original article Hit count: 173

Filed under:
|
|

I am trying to clip a 4:3 image with a circle within a grid control.

I need the circle clip to reveal the image from the middle in a perfect circle. See below.

alt text

The circle should dynamically re-size with the image.

I have tried Canvas.Clip and Ellipse+VisualBrush without achieving the correct behavior.

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf