Skip to main content
All docs
V19.1

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Image Editing Menu

  • 2 minutes to read

PictureEdit and ImageEdit editors are used to display images stored as bitmap, metafile, icon, JPEG, GIF or PNG files, or image types stored within a data field. Both editors provide a built-in image editing context menu. This menu can be used to perform common operations such as copying, pasting, loading and saving images. The menu is shown in the image below.

PictureEdit_Class.gif

To invoke the context menu, an end-user must right-click the editor. The list below briefly describes each menu item.

  • Cut - removes the image from the editor and copies it to the Clipboard.
  • Copy - copies the image to the Clipboard.
  • Paste - pastes the image from the Clipboard to the editor.
  • Delete - removes the image from the editor.
  • Load - invokes the Open dialog, which allows you to select an image file to display within the editor.
  • Save - invokes the Save dialog, which allows you to save the image displayed within the editor.
  • Zoom-related menu commands are available in the PictureEdit control. These commands can be enabled via the RepositoryItemPictureEdit.ShowZoomSubMenu option.

A custom (user defined) menu can be substituted for the built-in context menu by creating a ContextMenu component and assigning it to the editor’s RepositoryItem.ContextMenu property.

Note

The built-in menu’s availability is specified by the RepositoryItemImageEdit.ShowMenu and RepositoryItemPictureEdit.ShowMenu properties (for ImageEdit and PictureEdit respectively).