New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Adding a Rotating-Image Functionality to the ImageEditor
Environment
Product | Telerik UI for ASP.NET Core ImageEditor |
Progress Telerik UI for ASP.NET Core version | Created with the 2022.2.621 version |
Description
How can I add a functionality for rotating images in the Telerik UI for ASP.NET Core ImageEditor?
Solution
To achieve the desired scenario:
- Add a custom button in the ToolBar of the ImageEditor that executes a custom command.
- When the command is triggered, execute custom logic to rotate the image.
CustomCommand
.Toolbar(toolbar => toolbar.Items(i =>
{
i.Add().Command("RotateImageRightImageEditorCommand").Type("button").Text("Rotate Image");
}))
For the complete implementation of approach suggested above, refer to the following Telerik REPL.