A newer version of this page is available. Switch to the current version.

ImageEdit Class

Represents an image editor.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.2.dll

Declaration

public class ImageEdit :
    BaseEdit,
    IImageEdit,
    IInputElement,
    IImageExportSettings,
    IExportSettings
Public Class ImageEdit
    Inherits BaseEdit
    Implements IImageEdit,
               IInputElement,
               IImageExportSettings,
               IExportSettings

Remarks

The ImageEdit control represents an editor that displays an image.

ImageEditor_ShowMenu

Its features include:

  • Supported Image Formats - Bitmap, JPEG, GIF and PNG.
  • Configurable Image Size - an image can be resized to fill the image box, stretched or shrunk to fit the size of the box (ImageEdit.Stretch).
  • Built-in Menu -end-users can cut, copy, paste, delete, load or save an image. It's also possible to remove the default commands and/or add custom commands (via templates). This menu is automatically shown when the mouse pointer enters the image, and is automatically hidden when the mouse pointer leaves the image (ImageEdit.ShowMenu).
  • Easy Image Loading - clicking within an image editor shows the Open dialog allowing you to select an image. This behavior is controlled by the ImageEdit.ShowLoadDialogOnClickMode property.
  • Webcam support - the 'Take Snapshot' button allows your end-users to take a picture from a webcam and show it within the image editor.
  • Menu Templates - use the ImageEdit.MenuTemplate and ImageEdit.MenuContainerTemplate properties, to provide a custom menu appearance.
  • Localizable UI
See Also