Back to Devexpress

TcxCustomImage.ShowImageEditor Method

vcl-cximage-dot-tcxcustomimage.md

latest2.3 KB
Original Source

TcxCustomImage.ShowImageEditor Method

Displays the Image Editor dialog.

Declaration

delphi
procedure ShowImageEditor;

Remarks

Call the ShowImageEditor procedure to display the Image Editor modal dialog that allows users to perform simple image edit operations, such as cropping, rotation, and color adjustment.

A user can click the Edit… item in the editor context menu to display the Image Editor dialog:

Menu Item Availability

The Edit… context menu item is visible only if the pmiEdit flag is present in the Properties.PopupMenuLayout.MenuItems property. The menu item is enabled only if the image editor is not empty.

Create a Custom Image Editor Dialog

You can inherit a form class from TdxCustomImageEditorDialog and assign a reference to the created class to the dxImageEditorClass global variable to replace the built-in Image Editor with a custom implementation.

Tip

Inherit a custom form class from the TdxCustomImageEditorDialog class if you need to create a new editor dialog from scratch. If you need only to adjust the built-in Image Editor dialog, use the TdxImageEditorDialog class instead.

See Also

TcxCustomImage.LoadFromFile Procedure

TcxCustomImage.SaveToFile Procedure

TcxCustomImageProperties.PopupMenuLayout Property

TcxPopupMenuLayout.MenuItems Property

TcxCustomImage Class

TcxCustomImage Members

cxImage Unit