Skip to main content

TcxCustomImage.SaveToFile Method

Invokes the Save As dialog.

Declaration

procedure SaveToFile;

Remarks

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

VCL Editors Library: Different Skin Examples

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