Skip to main content

TdxCustomSmartImage.SaveToFile(string) Method

Saves the stored image to a file.

Declaration

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