Back to Devexpress

TdxCustomSmartImage.SaveToFile(string) Method

vcl-dxsmartimage-dot-tdxcustomsmartimage-dot-savetofile-x28-system-dot-string-x29.md

latest1.7 KB
Original Source

TdxCustomSmartImage.SaveToFile(string) Method

Saves the stored image to a file.

Declaration

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

Parameters

NameTypeDescription
Filenamestring

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, dibThe simple bitmap format (BMP).
jpg, jpegThe Joint Photographic Experts Group format (JPEG).
gifThe Graphics Interchange Format (GIF) with animation support.
pngThe Portable Network Graphics format (PNG).
tif, tiffThe Tagged Image File Format (TIFF).
svgThe 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

TdxCustomSmartImage Class

TdxCustomSmartImage Members

dxSmartImage Unit