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?

asitis
  • 3,023
  • 1
  • 31
  • 55

1 Answers1

0

Have you considered just taking a path / shape and setting the background or fill properties to an image brush?

See: How to Use an image as ImageBrush on a Line or Path in WPF

Community
  • 1
  • 1
Clint
  • 6,133
  • 2
  • 27
  • 48