用于ASP的Telerik UI。NET MVC图像编辑器component helps you modify images directly into your app, without having to install third-party software or switch to an external application. The control is powered by the HTML5 Canvas element and comes with built-in options to load, crop, resize, zoom and download the resulting image.
看到ASP。NET MVC图像编辑器in action
当调整工具被选中后,控件的右侧会显示一个面板,该面板带有调整图像宽度和高度以及锁定长宽比的配置选项。当您更改大小设置时,可以通过控件顶部的“撤消和重做”按钮轻松看到更改前和更改后的版本。
类似于调整大小,选择作物工具显示了一个面板,为用户提供了几个选项——调整图像的长宽比,方向和裁剪版本的宽度和高度。同样,可以使用撤消和重做按钮在图像版本之间来回切换,以找到最佳结果。
图像编辑器的缩放选项正是你所期望的一个构建良好的编辑器:
除了默认的“调整大小”、“裁剪”、“撤销”、“重做”和“缩放”命令。,图像编辑器为您提供了添加自定义命令的机会。在ImageEditor名称空间的帮助下,您可以轻松地扩展ImageEditorCommand类。
图像编辑器自带开箱即用的键盘导航支持,使所有用户都可以使用他们的键盘访问和导航它。
Telerik ASP。NET MVC图像编辑器has 20+ built-in themes and swatches such as Default (our own styling), Material (based on the Material Design guidelines) and Bootstrap (which looks like the Bootstrap styling to integrate better). You can easily customize any of out-of-the-box themes with a few lines of CSS, or create new theme to match your colors and branding by using theSASS ThemeBuilder进展应用程序。