How to show the required crop action inside the toolbar in the .NET MAUI Image Editor?
The Syncfusion® .NET MAUI Image Editor (SfImageEditor) allows you to display specific crop actions in the toolbar. This article guides you on how to show the required crop actions inside the toolbar.
XAML:
Initialize the SfImageEditor control and provide the image source using the Source property.
By using the CropTypes property of the ImageEditorToolbarSettings class, you can display only the required crop types in the toolbar.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="image.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings CropTypes="Circle, Square, Free" />
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
Download the complete sample from GitHub.
Output:
Conclusion:
I hope you enjoyed learning how to show the required crop action inside the toolbar in the .NET MAUI Image Editor (SfImageEditor).
Refer to our .NET MAUI Image Editor feature tour page for other groundbreaking feature representations. You can also explore our .NET MAUI Image Editor documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Image Editor and other .NET MAUI components.
Please let us know in the following comment section if you have any queries or require clarification. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!