0

I have clipped an Image control in to a Border which contains it by referring this blog

Sample xaml Code

        <Border Behaviors:ImageClip.ToBounds="True">
            <Image  Source="{Binding Image}"/>
        </Border>

But how do i clip an Image Control into a Path / Shape [Like Star /Ellipse] .I have tried previous method.But it was not succeeded because path does not have Content Property so that we can't set Image Clip Behaviour to Path.

I have tried with ImageBrush Fill .But that could not fit into my case beacause i have to implement some behaviours like Pinch & Zoom on Image Control.

So that am stuck. Can anyone help me with any suggestion or samples?

4

1 回答 1

0

您是否考虑过仅采用路径/形状并将背景或填充属性设置为图像画笔?

请参阅:如何在 WPF 中的线条或路径上使用图像作为 ImageBrush

于 2013-04-03T15:09:55.170 回答