skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadImageEditor

Inheritance
System.Object
RadControl
RadImageEditor
Inherited Members
RadControl.isResizing2
RadControl.isDisposing2
RadControl.invalidResizeRect
RadControl.isAccessibilityRequested
RadControl.Dispose(Boolean)
RadControl.Construct()
RadControl.CreateBehavior()
RadControl.CreateRootElement()
RadControl.InitializeRootElement(RootRadElement)
RadControl.LoadElementTree()
RadControl.LoadElementTree(Size)
RadControl.SetIsInitializing(Boolean)
RadControl.ShouldSerializeBackColor()
RadControl.SetBackColorThemeOverrides()
RadControl.ResetBackColorThemeOverrides()
RadControl.ShouldSerializeForeColor()
RadControl.SetForeColorThemeOverrides()
RadControl.ResetForeColorThemeOverrides()
RadControl.ShouldSerializeFont()
RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)
RadControl.OnClick(EventArgs)
RadControl.OnDoubleClick(EventArgs)
RadControl.OnMouseCaptureChanged(EventArgs)
RadControl.OnGotFocus(EventArgs)
RadControl.OnLostFocus(EventArgs)
RadControl.OnCreateControl()
RadControl.OnHandleDestroyed(EventArgs)
RadControl.OnParentChanged(EventArgs)
RadControl.OnVisibleChanged(EventArgs)
RadControl.OnFontChanged(EventArgs)
RadControl.OnForeColorChanged(EventArgs)
RadControl.OnBackColorChanged(EventArgs)
RadControl.OnEnabledChanged(EventArgs)
RadControl.OnBindingContextChanged(EventArgs)
RadControl.OnLocationChanged(EventArgs)
RadControl.OnPaddingChanged(EventArgs)
RadControl.OnRightToLeftChanged(EventArgs)
RadControl.OnPaint(PaintEventArgs)
RadControl.OnLayout(LayoutEventArgs)
RadControl.OnAutoSizeChanged(EventArgs)
RadControl.WndProc(Message)
RadControl.OnInvalidated(RadElement)
RadControl.OnLoad(Size)
RadControl.OnCaptureLosing()
RadControl.OnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.OnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.ProcessMnemonic(Char)
RadControl.ProcessFocusRequested(RadElement)
RadControl.ProcessCaptureChangeRequested(RadElement, Boolean)
RadControl.ProcessAutoSizeChanged(Boolean)
RadControl.CallOnMouseCaptureChanged(EventArgs)
RadControl.CallBaseOnGotFocus(EventArgs)
RadControl.CallBaseOnLostFocus(EventArgs)
RadControl.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.CallOnMouseUp(MouseEventArgs)
RadControl.CallOnMouseDown(MouseEventArgs)
RadControl.CallOnClick(EventArgs)
RadControl.CallOnDoubleClick(EventArgs)
RadControl.CallOnMouseEnter(EventArgs)
RadControl.CallOnMouseWheel(MouseEventArgs)
RadControl.CallOnMouseLeave(EventArgs)
RadControl.CallOnMouseMove(MouseEventArgs)
RadControl.CallOnMouseHover(EventArgs)
RadControl.CallOnPreviewKeyDown(PreviewKeyDownEventArgs)
RadControl.CallBaseOnKeyDown(KeyEventArgs)
RadControl.CallOnKeyDown(KeyEventArgs)
RadControl.CallBaseOnKeyPress(KeyPressEventArgs)
RadControl.CallOnKeyPress(KeyPressEventArgs)
RadControl.IsInputKey(Keys)
RadControl.GetInputElement()
RadControl.CallBaseOnKeyUp(KeyEventArgs)
RadControl.CallOnKeyUp(KeyEventArgs)
RadControl.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.CallOnVisibleChanged(EventArgs)
RadControl.BeginInit()
RadControl.EndInit()
RadControl.OnNotifyPropertyChanged(String)
RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadControl.IComponentTreeHandler.GetShowFocusCues()
RadControl.IComponentTreeHandler.CreateRootElement()
RadControl.IComponentTreeHandler.CreateChildItems(RadElement)
RadControl.IComponentTreeHandler.InitializeRootElement(RootRadElement)
RadControl.IComponentTreeHandler.InvalidateElement(RadElement)
RadControl.IComponentTreeHandler.InvalidateElement(RadElement, Rectangle)
RadControl.IComponentTreeHandler.InvalidateIfNotSuspended()
RadControl.IComponentTreeHandler.GetAmbientPropertyValue(RadProperty)
RadControl.IComponentTreeHandler.ControlThemeChangedCallback()
RadControl.IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty)
RadControl.IComponentTreeHandler.OnFocusRequested(RadElement)
RadControl.IComponentTreeHandler.OnCaptureChangeRequested(RadElement, Boolean)
RadControl.IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadControl.IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs)
RadControl.IComponentTreeHandler.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.IComponentTreeHandler.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.GetPreferredSize(Size)
RadControl.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
RadControl.GetRootElementDesiredSize(Int32, Int32, Int32, Int32)
RadControl.OnZoomGesture(ZoomGestureEventArgs)
RadControl.OnRotateGesture(RotateGestureEventArgs)
RadControl.OnPanGesture(PanGestureEventArgs)
RadControl.OnTwoFingerTapGesture(GestureEventArgs)
RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)
RadControl.OnGesture(GestureEventArgs)
RadControl.ProcessGesture(Message)
RadControl.EnableGesture(GestureType)
RadControl.DisableGesture(GestureType)
RadControl.Refresh()
RadControl.SuspendUpdate()
RadControl.ResumeUpdate()
RadControl.ResumeUpdate(Boolean)
RadControl.InvokeLayoutCallback(LayoutCallback)
RadControl.RegisterHostedControl(RadHostItem)
RadControl.UnregisterHostedControl(RadHostItem, Boolean)
RadControl.ControlDefinesThemeForElement(RadElement)
RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)
RadControl.GetPlainText()
RadControl.CanEditUIElement(RadElement)
RadControl.GetChildAt(Int32)
RadControl.ShouldSerializeProperty(RadProperty)
RadControl.ShouldSerializeProperty(RadProperty, RadObject)
RadControl.ResetProperty(RadProperty, RadObject)
RadControl.CanEditElementAtDesignTime(RadElement)
RadControl.GetControlDefaultSize()
RadControl.GetDpiScaledSize(Size)
RadControl.GetDpiScaledSize(SizeF)
RadControl.ProcessCodedUIMessage(IPCMessage)
RadControl.FindPropertyInChildren(RadControl, IPCMessage)
RadControl.CallAccessibilityNotifyClients(AccessibleEvents, Int32)
RadControl.IPCHost.ProcessMessage(IPCMessage)
RadControl.ScaleControl(SizeF, BoundsSpecified)
RadControl.PerformRadAutoScale(Nullable<BoundsSpecified>)
RadControl.SetRadAutoScale(Boolean)
RadControl.IComponentTreeHandler.get_Name()
RadControl.IComponentTreeHandler.set_Name(String)
RadControl.EnableDpiScaling
RadControl.EnableRadAutoScale
RadControl.EnableRadFormInitialDpiScaling
RadControl.EnableImageDpiScaling
RadControl.EnableSvgImages
RadControl.IsTrial
RadControl.IsLoaded
RadControl.LayoutManager
RadControl.ElementTree
RadControl.UseCompatibleTextRenderingDefaultValue
RadControl.Behavior
RadControl.RootElement
RadControl.Padding
RadControl.ThemeName
RadControl.Text
RadControl.EnableTheming
RadControl.ThemeClassName
RadControl.ImageList
RadControl.ImageScalingSize
RadControl.UseCompatibleTextRendering
RadControl.AutoSize
RadControl.MaximumSize
RadControl.MinimumSize
RadControl.Focusable
RadControl.Site
RadControl.CausesValidation
RadControl.IsInitializing
RadControl.SmallImageList
RadControl.SmallImageScalingSize
RadControl.IsDesignMode
RadControl.IsDisplayed
RadControl.FocusedElement
RadControl.AllowShowFocusCues
RadControl.ShowItemToolTips
RadControl.CommandBindings
RadControl.EnableKeyMap
RadControl.BackColor
RadControl.ForeColor
RadControl.Font
RadControl.ValidationCancel
RadControl.IComponentTreeHandler.IsDesignMode
RadControl.IComponentTreeHandler.ElementTree
RadControl.IComponentTreeHandler.Behavior
RadControl.IComponentTreeHandler.Initializing
RadControl.IComponentTreeHandler.ThemeClassName
RadControl.EnableGestures
RadControl.EnableAnalytics
RadControl.AnalyticsName
RadControl.EnableRadAccessibilityObjects
RadControl.AccessibilityRequested
RadControl.EnableCodedUITests
RadControl.EnableCodedUITestsDefaultValue
RadControl.EnableUIAutomation
RadControl.EnableUIAutomationDefaultValue
RadControl.IPCHost.Context
RadControl.ElementInvalidated
RadControl.ToolTipTextNeeded
RadControl.ScreenTipNeeded
RadControl.ThemeNameChanged
RadControl.Initialized
RadControl.PropertyChanged
RadControl.ZoomGesture
RadControl.RotateGesture
RadControl.PanGesture
RadControl.TwoFingerTapGesture
RadControl.PressAndTapGesture
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

[TelerikToolboxCategory("Editors")]
public class RadImageEditor : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider

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.

Declaration
public string BitmapPath { get; set; }
Property Value
System.String

CurrentBitmap

Gets or sets the current bitmap. If you want to open an image for edit use one of the OpenImage methods.

Declaration
public Bitmap CurrentBitmap { get; set; }
Property Value
System.Drawing.Bitmap

DefaultSize

Gets the default size for this RadImageEditor control.

Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size

ImageEditorElement

Gets the main element of the editor.

Declaration
public RadImageEditorElement ImageEditorElement { get; }
Property Value
RadImageEditorElement

ZoomFactor

Gets or sets the zoom factor of the editor.

Declaration
public SizeF ZoomFactor { get; set; }
Property Value
System.Drawing.SizeF

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
RadElement parent

The parent element to add child items to.

Overrides
RadControl.CreateChildItems(RadElement)

CreateImageEditorElement()

Creates the main image editor element for this control.

Declaration
protected virtual RadImageEditorElement CreateImageEditorElement()
Returns
RadImageEditorElement

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
System.String url

The URL of the image to load.

OnDragDrop(DragEventArgs)

Raises the DragDrop event and opens the dropped image file.

Declaration
protected override void OnDragDrop(DragEventArgs e)
Parameters
System.Windows.Forms.DragEventArgs e

The event arguments containing the drag and drop data.

OnDragEnter(DragEventArgs)

Raises the DragEnter event and sets the drag effect for file drops.

Declaration
protected override void OnDragEnter(DragEventArgs e)
Parameters
System.Windows.Forms.DragEventArgs e

The event arguments containing the drag and drop data.

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

The System.Windows.Forms.KeyEventArgs instance containing the event data.

Overrides
RadControl.OnKeyDown(KeyEventArgs)

OnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
System.Windows.Forms.KeyPressEventArgs e

The System.Windows.Forms.KeyPressEventArgs instance containing the event data.

Overrides
RadControl.OnKeyPress(KeyPressEventArgs)

OnKeyUp(KeyEventArgs)

Raises the KeyUp event.

Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

The System.Windows.Forms.KeyEventArgs instance containing the event data.

Overrides
RadControl.OnKeyUp(KeyEventArgs)

OnMouseClick(MouseEventArgs)

Raises the System.Windows.Forms.Control.MouseClick event.

Declaration
protected override void OnMouseClick(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

An System.Windows.Forms.MouseEventArgs that contains the event data.

OnMouseDoubleClick(MouseEventArgs)

Raises the System.Windows.Forms.Control.MouseDoubleClick event.

Declaration
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

An System.Windows.Forms.MouseEventArgs that contains the event data.

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseDown(MouseEventArgs)

OnMouseEnter(EventArgs)

Raises the MouseEnter event.

Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
RadControl.OnMouseEnter(EventArgs)

OnMouseHover(EventArgs)

Raises the MouseHover event.

Declaration
protected override void OnMouseHover(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
RadControl.OnMouseHover(EventArgs)

OnMouseLeave(EventArgs)

Raises the MouseLeave event.

Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs e

The System.EventArgs instance containing the event data.

Overrides
RadControl.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseUp(MouseEventArgs)

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs instance containing the event data.

Overrides
RadControl.OnMouseWheel(MouseEventArgs)

OnSizeChanged(EventArgs)

Raises the SizeChanged event and updates auto zoom if applicable.

Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
System.EventArgs e

The event arguments.

OnThemeChanged()

Raises the ThemeChanged event and updates command icons.

Declaration
protected override void OnThemeChanged()
Overrides
RadControl.OnThemeChanged()

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
System.Drawing.Bitmap bitmap

The bitmap to open.

OpenImage(String)

Opens an image file for editing.

Declaration
public virtual void OpenImage(string fileName)
Parameters
System.String 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
System.IO.Stream 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
System.IO.Stream stream

The stream to save the image to.

System.Drawing.Imaging.ImageFormat 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
System.String 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
System.String path

The path where the image will be saved.

System.Drawing.Imaging.ImageFormat 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 Type
ImageChangedEventHandler

ImageLoadAsyncProgressChanged

Occurs when the progress of an async load operation changes.

Declaration
public event ProgressChangedEventHandler ImageLoadAsyncProgressChanged
Event Type
System.ComponentModel.ProgressChangedEventHandler

ImageLoaded

Occurs after an image is loaded in the editor.

Declaration
public event AsyncCompletedEventHandler ImageLoaded
Event Type
System.ComponentModel.AsyncCompletedEventHandler

ImageSaved

Occurs after an image is saved.

Declaration
public event EventHandler ImageSaved
Event Type
System.EventHandler

OperationError

Occurs when an operation results in an error or an exception.

Declaration
public event ErrorEventHandler OperationError
Event Type
System.IO.ErrorEventHandler

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.