RadImageEditor
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
Initializes a new instance of the RadImageEditor class.
public RadImageEditor()
Properties
Gets or sets the path that will be used for save operations.
public string BitmapPath { get; set; }
Gets or sets the current bitmap. If you want to open an image for edit use one of the OpenImage methods.
public Bitmap CurrentBitmap { get; set; }
Gets the default size for this RadImageEditor control.
protected override Size DefaultSize { get; }
Overrides:
Gets the main element of the editor.
public RadImageEditorElement ImageEditorElement { get; }
Gets or sets the zoom factor of the editor.
public SizeF ZoomFactor { get; set; }
Methods
Cancels the asynchronous loading operation.
public virtual void CancelAsync()
Creates the child items for this RadImageEditor control.
protected override void CreateChildItems(RadElement parent)
The parent element to add child items to.
Overrides:
Creates the main image editor element for this control.
protected virtual RadImageEditorElement CreateImageEditorElement()
A new RadImageEditorElement instance.
Loads an image asynchronously.
public virtual void LoadAsync()
Loads an image asynchronously from the specified URL.
Raises the event and opens the dropped image file.
protected override void OnDragDrop(DragEventArgs e)
The event arguments containing the drag and drop data.
Overrides:
Raises the event and sets the drag effect for file drops.
protected override void OnDragEnter(DragEventArgs e)
The event arguments containing the drag and drop data.
Overrides:
Raises the event.
protected override void OnKeyDown(KeyEventArgs e)
The KeyEventArgs instance containing the event data.
Overrides:
Raises the event.
protected override void OnKeyPress(KeyPressEventArgs e)
The KeyPressEventArgs instance containing the event data.
Overrides:
Raises the event.
protected override void OnKeyUp(KeyEventArgs e)
The KeyEventArgs instance containing the event data.
Overrides:
Raises the MouseClick event.
protected override void OnMouseClick(MouseEventArgs e)
An MouseEventArgs that contains the event data.
Overrides:
Raises the MouseDoubleClick event.
protected override void OnMouseDoubleClick(MouseEventArgs e)
An MouseEventArgs that contains the event data.
Overrides:
Raises the event.
protected override void OnMouseDown(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event.
protected override void OnMouseMove(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event.
protected override void OnMouseUp(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event.
protected override void OnMouseWheel(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event and updates auto zoom if applicable.
protected override void OnSizeChanged(EventArgs e)
The event arguments.
Overrides:
Raises the event and updates command icons.
protected override void OnThemeChanged()
Overrides:
Opens an image file for editing using a file dialog.
public virtual void OpenImage()
Opens a bitmap image for editing.
Opens an image file for editing.
public virtual void OpenImage(string fileName)
The name of the file to open.
Saves the current image to the default path.
public virtual void SaveImage()
Saves the current image to the specified stream with the specified format.
public virtual void SaveImage(Stream stream, ImageFormat imageFormat)
The stream to save the image to.
imageFormatImageFormatThe format in which to save the image.
Saves the current image to the specified stream.
public virtual void SaveImage(Stream stream)
The stream to save the image to.
Saves the current image to the specified path with the specified format.
public virtual void SaveImage(string path, ImageFormat imageFormat)
The path where the image will be saved.
imageFormatImageFormatThe format in which to save the image.
Saves the current image to the specified path.
public virtual void SaveImage(string path)
The path where the image will be saved.
Saves an image using a file dialog.
public virtual void SaveImageAs()
Shows the blur filter dialog for applying blur effects.
public virtual void ShowBlurDialog()
Shows the canvas resize dialog for changing canvas dimensions and background.
public virtual void ShowCanvasResizeDialog()
Shows the contrast adjustment dialog for modifying image contrast and brightness.
public virtual void ShowContrastDialog()
Shows the free drawing dialog for freehand drawing on the image.
public virtual void ShowDrawDialog()
Shows the shape drawing dialog for adding geometric shapes to the image.
public virtual void ShowDrawShapeDialog()
Shows the text drawing dialog for adding text to the image.
public virtual void ShowDrawTextDialog()
Shows the hue shift dialog for adjusting image hue values.
public virtual void ShowHueDialog()
Shows the resize dialog for changing image dimensions.
public virtual void ShowResizeDialog()
Shows the round corners dialog for applying rounded corner effects.
public virtual void ShowRoundCornersDialog()
Shows the saturation adjustment dialog for modifying image saturation levels.
public virtual void ShowSaturationDialog()
Shows the sharpen filter dialog for applying sharpening effects.
public virtual void ShowSharpenDialog()
Events
Occurs after a specific operation is performed over the image.
public event ImageChangedEventHandler CurrentImageChanged
Occurs when the progress of an async load operation changes.
public event ProgressChangedEventHandler ImageLoadAsyncProgressChanged
Occurs after an image is loaded in the editor.
public event AsyncCompletedEventHandler ImageLoaded
Occurs after an image is saved.
public event EventHandler ImageSaved
Occurs when an operation results in an error or an exception.
public event ErrorEventHandler OperationError