Skip to main content
All docs
V26.1
  • TcxCustomImage.ShowImageEditor Method

    Displays the Image Editor dialog.

    Declaration

    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.

    VCL Editors Library: An Image Editor Dialog Example

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

    VCL Editors Library: Display the Image Editor Dialog

    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

    The dxImageEditorClass global variable specifies the active Image Editor dialog form class (as a class-reference).

    To replace the predefined Image Editor dialog, derive a form class from TdxCustomImageEditorDialog and assign the created class to the dxImageEditorClass global variable.

    Tip

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

    See Also