How do I crop an image in .NET MAUI?

Platform: .NET MAUI| Category: Controls

To crop an image in .NET MAUI, use the Clip feature.

<StackLayout VerticalOptions="Center" HorizontalOptions="Center">
    <Image Source="art.png" HeightRequest="200" WidthRequest="200" VerticalOptions="Start" HorizontalOptions="Start">
        <Image.Clip>
            <EllipseGeometry Center="100,100" RadiusX="100" RadiusY="100" />
        </Image.Clip>
    </Image>
</StackLayout>

Share with

Related FAQs

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

Please submit your question and answer.