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

TdxCustomSmartImage.SaveToFile(string) Method

Saves the stored image to a file.

#Declaration

Delphi
procedure SaveToFile(const Filename: string); override;

#Parameters

Name Type Description
Filename string

The full absolute or relative path to the saved image file. The specified file name extension defines the target image format. Refer to the table in the Remarks section for details.

#Remarks

Call the SaveToFile procedure to save the stored image in any format supported by the Smart Image container. The following table lists file name extensions that define the target image format:

Extensions (case-insensitive) Exported Image File Format
bmp, dib The simple bitmap format (BMP).
jpg, jpeg The Joint Photographic Experts Group format (JPEG).
gif The Graphics Interchange Format (GIF) with animation support.
png The Portable Network Graphics format (PNG).
tif, tiff The Tagged Image File Format (TIFF).
svg The Scalable Vector Graphics format (SVG). You can use this extension only if the stored image is an SVG file. Otherwise, an “Unsupported image format” exception occurs.
See Also