Interface for a class ImageEditor
Event callback that is raised before an image is saved.
EmitType<ImageEditorClickEventArgs>
Event callback that is raised while clicking on an image in the Image Editor.
EmitType<Event>
Event callback that is raised after rendering the Image Editor component.
Event callback that is raised while cropping an image.
EmitType<Event>
Event callback that is raised once the component is destroyed with its elements and bound events.
Event callback that is raised once an image is opened in an Image Editor.
Event callback that is raised when applying fine tune to an image.
Event callback that is raised while flipping an image.
EmitType<FrameChangeEventArgs>
Event callback that is raised while applying frames on an image.
EmitType<ImageFilterEventArgs>
Event callback that is raised when applying filter to an image.
Event callback that is raised while panning an image.
EmitType<ClickEventArgs>
Event callback that is raised once the quick access toolbar item is clicked.
EmitType<QuickAccessToolbarEventArgs>
Event callback that is raised when opening the quick access toolbar.
Event callback that is raised while resizing an image.
Event callback that is raised while rotating an image.
Event callback that is raised once an image is saved.
EmitType<SelectionChangeEventArgs>
Event callback that is raised while changing selection in an Image Editor.
EmitType<ShapeChangeEventArgs>
Event callback that is raised while changing shapes in an Image Editor.
Event callback that is raised once the toolbar is created.
EmitType<ClickEventArgs>
Event callback that is raised once the toolbar item is clicked.
Event callback that is raised while updating/refreshing the toolbar
<div style="height: 500px">
<div id='imageeditor'></div>
</div>
import { ImageEditor, ToolbarEventArgs } from '@syncfusion/ej2-image-editor';
let imageObj: ImageEditor = new ImageEditor({
showQuickAccessToolbar: true,
toolbarUpdating: (args: ToolbarEventArgs) => {
if (args.toolbarType === 'shapes') {
args.toolbarItems = ['fillColor', 'strokeColor', 'strokeWidth', { text: 'Click', template: '<button class="e-btn" id="shape">Click</button>', tooltipText: 'Click', prefixIcon: 'e-expand', id: 'Click' }];
}
},
});
imageObj.appendTo('#imageeditor');
Event callback that is raised while zooming an image.
boolean
Specifies a boolean value whether enable undo/redo operations in the image editor.
string
Defines one or more CSS classes that can be used to customize the appearance of an Image Editor component.
boolean
Defines whether an Image Editor component is enabled or disabled.
Specifies the finetune settings option which can be used to perform color adjustments in the image editor control.
<div style="height: 500px">
<div id='imageeditor'></div>
</div>
import { ImageEditor } from '@syncfusion/ej2-image-editor';
let imageObj: ImageEditor = new ImageEditor({
finetuneSettings: {
brightness: { min: -100, max: 100, defaultValue: 0 },
contrast: { min: -100, max: 100, defaultValue: 0 }
}
});
imageObj.appendTo('#imageeditor');
string
Specifies the height of the Image Editor.
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
string
| Function
Specifies a template for the quick access toolbar. Use this property to customize the quick access toolbar.
Specifies the selection settings to customize selection. A ‘SelectionSettingsModel’ value that specifies the the customization related options which are enabled in image editor control. The default value is null.
boolean
Specifies whether to show/hide the quick access toolbar.
string
| Theme
Specifies the theme of the Image Editor. The appearance of the shape selection in Image Editor is determined by this property.
[]
Specifies the toolbar items to perform UI interactions. It accepts both string[] and ItemModel[] to configure its toolbar items. The default value is null. If the property is not defined in the control, the default toolbar will be rendered with preconfigured toolbar commands. If the property is defined as empty collection, the toolbar will not be rendered. The preconfigured toolbar commands are
<div style="height: 500px">
<div id='imageeditor'></div>
</div>
import { ImageEditor } from '@syncfusion/ej2-image-editor';
let imageObj: ImageEditor = new ImageEditor({
toolbar: ['Crop', 'ZoomIn', 'ZoomOut', 'Transform', {text: 'Custom'}]
});
imageObj.appendTo('#imageeditor');
string
| Function
Specifies a custom template for the toolbar of an image editor control. A string that specifies a custom template for the toolbar of the image editor. If this property is defined, the ‘toolbar’ property will not have any effect.
<div style="height: 500px">
<div id='imageeditor'></div>
</div>
<script id="toolbarTemplate" type="text/x-template">
<div class = 'e-toolbar'>
<button id= 'dltbtn'>Custom</button>
</div>
</script>
import { ImageEditor } from '@syncfusion/ej2-image-editor';
let imageObj: ImageEditor = new ImageEditor({
toolbarTemplate: '#toolbarTemplate'
});
imageObj.appendTo('#imageeditor');
string
Specifies the width of an Image Editor.
Specifies the zoom settings to perform zooming action. A ‘ZoomSettingsModel’ value that specifies the the zoom related options which are enabled in image editor control. The default value is null.
<div style="height: 500px">
<div id='imageeditor'></div>
</div>
import { ImageEditor, ZoomTrigger } from '@syncfusion/ej2-image-editor';
let imageObj: ImageEditor = new ImageEditor({
zoomSettings: {
minZoomFactor: 1,
maxZoomFactor: 100,
zoomFactor: 1,
zoomTrigger: ZoomTrigger.MouseWheel | ZoomTrigger.Pinch | ZoomTrigger.Toolbar | ZoomTrigger.Commands,
zoomPoint: new Point {x: 500, y: 500}
}
});
imageObj.appendTo('#imageeditor');