ClassRadImageEditor
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Editors")]
[Docking(DockingBehavior.Ask)]
public class RadImageEditor : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadImageEditor
Implements:
Inherited Members
Constructors
RadImageEditor()
Initializes a new instance of the RadImageEditor class.
Declaration
public RadImageEditor()
Properties
BitmapPath
Gets or sets the path that will be used for save operations.
CurrentBitmap
Gets or sets the current bitmap. If you want to open an image for edit use one of the OpenImage methods.
DefaultSize
Gets the default size for this RadImageEditor control.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
ImageEditorElement
Gets the main element of the editor.
Declaration
public RadImageEditorElement ImageEditorElement { get; }
Property Value
ZoomFactor
Gets or sets the zoom factor of the editor.
Methods
CancelAsync()
Cancels the asynchronous loading operation.
Declaration
public virtual void CancelAsync()
CreateChildItems(RadElement)
Creates the child items for this RadImageEditor control.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent element to add child items to.
Overrides
CreateImageEditorElement()
Creates the main image editor element for this control.
Declaration
protected virtual RadImageEditorElement CreateImageEditorElement()
Returns
A new RadImageEditorElement instance.
LoadAsync()
Loads an image asynchronously.
Declaration
public virtual void LoadAsync()
LoadAsync(string)
Loads an image asynchronously from the specified URL.
Declaration
public virtual void LoadAsync(string url)
Parameters
url
The URL of the image to load.
OnDragDrop(DragEventArgs)
Raises the event and opens the dropped image file.
Declaration
protected override void OnDragDrop(DragEventArgs e)
Parameters
e
The event arguments containing the drag and drop data.
Overrides
OnDragEnter(DragEventArgs)
Raises the event and sets the drag effect for file drops.
Declaration
protected override void OnDragEnter(DragEventArgs e)
Parameters
e
The event arguments containing the drag and drop data.
Overrides
OnKeyDown(KeyEventArgs)
Raises the event.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
Overrides
OnKeyPress(KeyPressEventArgs)
Raises the event.
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
e
The KeyPressEventArgs instance containing the event data.
Overrides
OnKeyUp(KeyEventArgs)
Raises the event.
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
Overrides
OnMouseClick(MouseEventArgs)
Raises the MouseClick event.
Declaration
protected override void OnMouseClick(MouseEventArgs e)
Parameters
e
An MouseEventArgs that contains the event data.
Overrides
OnMouseDoubleClick(MouseEventArgs)
Raises the MouseDoubleClick event.
Declaration
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters
e
An MouseEventArgs that contains the event data.
Overrides
OnMouseDown(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnMouseEnter(EventArgs)
Raises the event.
OnMouseHover(EventArgs)
Raises the event.
OnMouseLeave(EventArgs)
Raises the event.
OnMouseMove(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnMouseUp(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnMouseWheel(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnSizeChanged(EventArgs)
Raises the event and updates auto zoom if applicable.
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
e
The event arguments.
Overrides
OnThemeChanged()
Raises the event and updates command icons.
Declaration
protected override void OnThemeChanged()
Overrides
OpenImage()
Opens an image file for editing using a file dialog.
Declaration
public virtual void OpenImage()
OpenImage(Bitmap)
Opens a bitmap image for editing.
Declaration
public virtual void OpenImage(Bitmap bitmap)
Parameters
bitmap
The bitmap to open.
OpenImage(string)
Opens an image file for editing.
Declaration
public virtual void OpenImage(string fileName)
Parameters
fileName
The name of the file to open.
SaveImage()
Saves the current image to the default path.
Declaration
public virtual void SaveImage()
SaveImage(Stream)
Saves the current image to the specified stream.
Declaration
public virtual void SaveImage(Stream stream)
Parameters
stream
The stream to save the image to.
SaveImage(Stream, ImageFormat)
Saves the current image to the specified stream with the specified format.
Declaration
public virtual void SaveImage(Stream stream, ImageFormat imageFormat)
Parameters
stream
The stream to save the image to.
imageFormat
The format in which to save the image.
SaveImage(string)
Saves the current image to the specified path.
Declaration
public virtual void SaveImage(string path)
Parameters
path
The path where the image will be saved.
SaveImage(string, ImageFormat)
Saves the current image to the specified path with the specified format.
Declaration
public virtual void SaveImage(string path, ImageFormat imageFormat)
Parameters
path
The path where the image will be saved.
imageFormat
The format in which to save the image.
SaveImageAs()
Saves an image using a file dialog.
Declaration
public virtual void SaveImageAs()
ShowBlurDialog()
Shows the blur filter dialog for applying blur effects.
Declaration
public virtual void ShowBlurDialog()
ShowCanvasResizeDialog()
Shows the canvas resize dialog for changing canvas dimensions and background.
Declaration
public virtual void ShowCanvasResizeDialog()
ShowContrastDialog()
Shows the contrast adjustment dialog for modifying image contrast and brightness.
Declaration
public virtual void ShowContrastDialog()
ShowDrawDialog()
Shows the free drawing dialog for freehand drawing on the image.
Declaration
public virtual void ShowDrawDialog()
ShowDrawShapeDialog()
Shows the shape drawing dialog for adding geometric shapes to the image.
Declaration
public virtual void ShowDrawShapeDialog()
ShowDrawTextDialog()
Shows the text drawing dialog for adding text to the image.
Declaration
public virtual void ShowDrawTextDialog()
ShowHueDialog()
Shows the hue shift dialog for adjusting image hue values.
Declaration
public virtual void ShowHueDialog()
ShowResizeDialog()
Shows the resize dialog for changing image dimensions.
Declaration
public virtual void ShowResizeDialog()
ShowRoundCornersDialog()
Shows the round corners dialog for applying rounded corner effects.
Declaration
public virtual void ShowRoundCornersDialog()
ShowSaturationDialog()
Shows the saturation adjustment dialog for modifying image saturation levels.
Declaration
public virtual void ShowSaturationDialog()
ShowSharpenDialog()
Shows the sharpen filter dialog for applying sharpening effects.
Declaration
public virtual void ShowSharpenDialog()
Events
CurrentImageChanged
Occurs after a specific operation is performed over the image.
Declaration
public event ImageChangedEventHandler CurrentImageChanged
Event Value
ImageLoadAsyncProgressChanged
Occurs when the progress of an async load operation changes.
Declaration
public event ProgressChangedEventHandler ImageLoadAsyncProgressChanged
Event Value
ImageLoaded
Occurs after an image is loaded in the editor.
Declaration
public event AsyncCompletedEventHandler ImageLoaded
Event Value
ImageSaved
Occurs after an image is saved.
OperationError
Occurs when an operation results in an error or an exception.
Declaration
public event ErrorEventHandler OperationError
Event Value