Table of Contents

TUIImage.Save Method

Overloads

TUIImage.Save(TStream, TXlsImgType)

Saves the image to a stream, in the specified format.

Syntax

Unit: FlexCel.Core

function TUIImage.Save(const outMs: TStream; const ImgType: TXlsImgType): TXlsImgType; overload; virtual; abstract;

Parameters

<-> Parameter Type Description
const outMs TStream
const ImgType TXlsImgType

Returns

The actual file format in which the file was saved. It might not be possible to save in the required format, and a different one might be used.

See also

TUIImage.Save(string, TXlsImgType)

Saves the image to a file.

Syntax

Unit: FlexCel.Core

function TUIImage.Save(const fname: string; const ImgType: TXlsImgType = TXlsImgType.Unknown): TXlsImgType; overload; virtual; abstract;

Parameters

<-> Parameter Type Description
const fname string Name of the file where the image will be saved.
const ImgType TXlsImgType Optional: Default value is TXlsImgType.Unknown

Image format for the saved image. If this is unspecified or Unknown, the image will be saved depending on its extension. If the image type can't be inferred from the filename, it will be saved as png.

Returns

The actual file format in which the file was saved. It might not be possible to save in the required format, and a different one might be used.

See also