This article lists the server-side API of the RadImageEditor control and its related classes. It contains the following sections:
|Applies the IImageOperation(s) to the current EditableImage in the order they appear in the operations collection. Takes a collection of IImageOperation(s) to apply as an argument. Can optionally take the EditableImage to apply the operations to. Returns the modified EditableImage object.
|Extracts the file name from the value of the ImageUrl property. Returns the file name without the extension.
|Forces the ToolsFile to be parsed and loaded at any given time.
|Gets a reference to the Telerik.Web.UI.ImageEditor. EditableImage that is currently associated with the ImageEditor control. Returns the associated Telerik.Web.UI.ImageEditor. EditableImage .
|Returns a bool value that indicates whether the command is built-in in the RadImageEditor, or is a custom one.
|Loads ImageEditor tools from the passed XmlDocument. Takes an object of type XmlDocument as an argument.
|Registers a custom command in case it is missing as a button from the toolbar. The name of the command as a parameter (string). This method should be called before PreRender.
|Clears all the changes currently applied to the image, and restores the original image. This method should be invoked before PreRender so that the control can request the original image.
|Applies the current pending changes on the current RadImageEditor's EditableImage or on a specific EditableImage, saves the EditableImage using the ContentProvider's SaveImage method, and invokes the ImageSaving event. Takes as arguments the name to use if the image is saved on the FileSystem (Use string and leave empty if you want to keep the existing name) and a bool value indicating whether the existing image in the ContentProvider should be overwritten. Can optionally take the EditableImage to save as first argument. Returns a string message that indicates whether the saving was successful. Empty string means the saving was successful.
|Gets the name of the last (active) command executed by the ImageEditor.
|Gets or sets a value that indicates where the user is allowed to save the image. The options available are: "Client", "Server" and "ClientAndServer". The default is ClientAndServer.
|Gets or sets the alternate text displayed in the edited image when the image is unavailable.
|Gets or sets a value that indicates whether or not the canvas mode of the ImageEditor will be enabled.
|Gets the unique identifier of the current EditableImage.
|Gets or sets the location of the currently edited image within the Image editor.
|Gets or sets the location to a detailed description for the edited image.
|Gets or sets a bool value that indicates whether the control can be resized.
|Gets or sets a value indicating where the image editor will look for its dialogs.The required argument is a relative path to the dialogs location, for example:
"~/controls/RadImageEditorDialogs/". If specified, the ExternalDialogsPath property allows the image editordialogs to be customized and loaded from normal ASCX files.
|Gets or sets the height of the RadImageEditor control.
|Specifies the URL of the HTTPHandler that serves the cached image. The HTTPHandler should either be registered in the application configuration file, or a file with the specified name should exist at the location, which HttpHandlerUrl points to. If a file is to serve the files, it should inherit the class Telerik.Web.UI.WebResource.
|Specifies where the cached imaged from the operation will be stored. When the image is stored in the session the HttpHandler definition (in the web.config file) must be changed from Telerik.Web.UI.WebResource to Telerik.Web.UI.WebResourceSession so that the image can be retrieved from the Session
|Configures the ImageEditor's ContentProvider.
|GUID key used to get all the image keys from the CacheProvider, related with the current instance of the ImageEditor control.
|Gets or sets the location of an image to edit within the image editor.
|Gets or sets a string containing the localization language for the RadImageEditor UI.
|The Localization property specifies the strings that appear in the runtime user interface of RadImageEditor.
|Gets or sets a value indicating where the image editor will look for its .resx localization files. By default these files should be in the App_GlobalResources folder. However, if you cannot put the resource files in the default location or .resx files compilation is disabled for some reason (e.g. in a DotNetNuke environment), this property should be set to the location of the resource files. The required argument is a relative path to the dialogs location. For example: "~/controls/RadEditorResources/". If specified, the LocalizationPath property will allow you to load the image editor localization files from any location in the web application.
|Gets or sets the lower limit of the zoom level. This is the lowest percentage value up to which the user can zoom out the image in the RadImageEditor.The default value is 25%.
|Gets or sets a bool value that indicates whether RadAjaxLoadingPanel will be shown over the tools panel.
|Sets the skin the control will be using
|Gets or sets a value that controls the behavior of the RadImageEditor's StatusBar
|Gets or sets value that controls the behavior of the Toolbar. The options available are: "Default" and "Docked".
|Gets or sets the position of the Toolbar relative to the edited content (content area).
|Gets the collection containing RadImageEditor tools.
|Gets or sets a string containing the path to the XML toolbar configuration file. Use
"~" (tilde) as a substitution of the web-application's root directory. You can also provide this property with an absolute URL which returns a valid XML toolbar configuration file, e.g.,
|The panel type to use for loading the tools dialogs' content.
|Gets or sets the maximal number of operations that will be stored in the Undo stack. Zero (0) is the default value, meaning there is no limit on the number of operations stored.
|The collection of commands that are applied on the client, and need to be applied on the server.
|Gets or sets the upper limit of the zoom level. This is the highest percentage value up to which the user can zoom in the image in the RadImageEditor. The default value is 400%.
|Gets or sets the width of the RadImageEditor control.
|Adds text to a specific position in the current EditableImage. Takes as arguements the point, in which the text should be inserted, and the text itself.
|Applies the IImageOperation(s) to the current image in the order they appear in the operations collection. Takes as argument the Collection of IImageOperation(s) to apply.
|Changes the opacity if the current EditableImage. Takes as arguement the opacity to be set.
|Creates copy of the current EditableImage. Returnes the cloned EditableImage.
|Crops a selected area of the current EditableImage. Takes as arguement an instance of the class Rectangle, which determines the cropped zone.
|Disposes the current EditableImage.
|Creates an EditableImage. Takes as arguments any of the following variants: A stream, containing the image data; A path to the specific image; An object of type System.Drawing.Image; An object of type System.Drawing.Image and an object, implementing the IGraphicsCore interface.
|Fixes a problem with the Gif file format support in the .NET framework.
|Flips the current EditableImage to the specified direction. Takes as arguement the direction, to which the EditableImage should be flipped.
|Inserts an image in a specific position in the current EditableImage. Takes as arguements the point, in which the image should be placed, and the image itself.
|Replaces the current System.Drawing.Image object of the EditableImage. Takes as argument the System.Drawing.Image object to replace the existing Image with.
|Resizes the current EditableImage. It can take either one argument of type Size or two arguments, which will specify whe new width and height.
|Rotates the current EditableImage. Takes as arguement the angle for rotating the EditableImage.
|Gets the format of the current EditableImage.
|Gets the height of the current EditableImage.
|Gets the Image object of the current EditableImage.
|Gets a bool value that indicates whether the dispose method of the EditableImage has been called.
|Gets the format of the current EditableImage as an instance of ImageFormat.
|Gets the size of the current EditableImage.
|Gets the width of the current EditableImage.
|Creates an ImageEditor tool with or without a specified command name. Can optionally take as arguments the CommandName of the tool and the ShortCut of the tool.
|Creates a tool separator.
|Gets or sets the name of the command fired when the tool is clicked.
|Gets or sets the CSS class applied to the ImageEditor tool.
|Gets or sets a value indicating whether this ImageEditor tool is enabled.
|Gets or sets the location of an image (icon) to display in the ImageEditor tool
|Gets or sets a bool value that indicates whether the tool is a separator.
|Gets or sets a value indicating whether the ImageEditor tool can be toggled or not.
|Gets or sets the keyboard shortcut which will invoke the associated RadImageEditor command.
|Gets or sets the text displayed in the tool.
|Gets or sets the ToolTip of the ImageEditor tool.
|Determines whether the group a tool with the specified name.
|Finds the tool with the given name.
|Gets all tools inside the group.
|Creates an ImageEditor toolstrip with the specified command name.
|Initializes the Tools collection from the ToolsFileContent property of RadImageEditor.
|Gets the children of the ImageEditorToolGroup.
|Specifies where the end user can save the edited image: ClientAndServer - The user can save the image on the client and server machine; Client - The user can save image on the client only; Server - The user can save image on the server only.
|Vertical, Horizontal, Both
|Rotate90, Rotate180, Rotate270
|Specifies the possible values for the StatusBarMode property of the RadImageEditor control: Bottom - The StatusBar is rendered below the editable area of the ImageEditor; Top - The StatusBar is rendered above the editable area of the ImageEditor and below the ToolBar; Hidden - The StatusBar is not rendered at all.
|Specifies the Toolbar behavior of the RadImageEditor control: Default - The Toolbar is attached to the ImageEditor control. In this mode the Toolbar is static and can't be moved; Docked - The Toolbar is rendered within a dock and can be docked into one of the 4(four) zones available, or left undocked anywhere on the page.
|Specifies the position of the Toolbar relative to the edited content (content area): Top - The Toolbar is rendered above the content area; Right - The Toolbar is rendered to the right of the content area; Bottom - The Toolbar is rendered below the content area; Left - The Toolbar is rendered to the left of the content area.
|Specifies the options for enabling the canvas mode (using HTML5 canvas element for editing images) in the RadImageEditor control: Automatic - The RadImageEditor enables the canvas mode if the client browser supports the HTML5 canvas element, and doesn't enable the canvas mode if the canvas element is not supported; Yes - The canvas mode is always enabled no matter if the browser does not support the HTML5 canvas element; No - The canvas mode is disabled.
|Specifies the locations where a Telerik.Web.UI.RadImageEditor instance can store its intermediary EditableImage objects, resulting from server operations: Cache - The EditableImage objects are stored in the System.Web.Caching.Cache of the current application; Session - The EditableImage objects are stored in the System.Web.SessionState.HttpSessionState of the current HTTP Request; FileSystem - The EditableImage objects are stored in the WebServer's file system.