Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

TcxCustomImage.SaveToFile Method

Invokes the Save As dialog.

#Declaration

Delphi
procedure SaveToFile;

#Remarks

Call the SaveToFile procedure to invoke the Save As dialog that allows users to save the displayed image to a file.

You can use the Properties.CustomFilter property to configure the dialog’s file filter.

A user can click the Save As… item in the editor context menu to invoke the Image Editor dialog:

VCL Editors Library: Invoke the Image Editor Dialog

The Save As… context menu item is visible only if the pmiSave 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 Save As File Dialog

Inherit a form class from TdxfrmSaveFileDialog and assign a reference to the created class to the SaveFileDialogFormClass global variable to replace the built-in Save As dialog form with a custom implementation.

See Also