How can I crop an Image ?

Platform: WPF| Category: Image

Cropping images is done with the Image.Clip property. For this, use the following code snippets.

[XAML]

<Image Source="Test.png">
    <Image.Clip>
        <EllipseGeometry Center="120,140" RadiusX="150" RadiusY="150" />
    </Image.Clip>
<Image>

Reference link: https://www.c-sharpcorner.com/uploadfile/mahesh/clipping-or-cropping-images-in-wpf/

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.