Search Results for

    Show / Hide Table of Contents

    TXlsBaseChart.AddImage Method

    Overloads

    • TXlsBaseChart.AddImage(TUIImage, IImageProperties)
    • TXlsBaseChart.AddImage(TBytes, IImageProperties)
    • TXlsBaseChart.AddImage(TStream, IImageProperties)
    • TXlsBaseChart.AddImage(string, IImageProperties)
    • TXlsBaseChart.AddImage(TBytes, TXlsImgType, IImageProperties)
    • TXlsBaseChart.AddImage(TStream, TXlsImgType, IImageProperties)

    TXlsBaseChart.AddImage(TUIImage, IImageProperties)

    Adds a new image to the active sheet. If you don't have the image already created, prefer using AddImage(TStream, IImageProperties), as it is faster. Note that for SVG images, xlsx files store both a PNG and SVG image. To enter an SVG image, use AddImageAlternate

    Remarks

    Saving a WMF or EMF Image is not currently supported by the .NET framework. If you pass a MetaFile to this method, it will be saved as png. For inserting a REAL wmf into excel use AddImage(TStream, IImageProperties)

    Syntax

    Unit: FlexCel.XlsAdapter

    procedure TXlsBaseChart.AddImage(const img: TUIImage; imageProperties: IImageProperties); overload;

    Parameters

    <-> Parameter Type Description
    const img TUIImage Image to insert.
    imageProperties IImageProperties Image size/position

    See also

    • TXlsBaseChart

    TXlsBaseChart.AddImage(TBytes, IImageProperties)

    Adds an image to the active sheet. It will try to automatically guess/convert the image type of the data to the better fit. Note that for SVG images, xlsx files store both a PNG and SVG image. To enter an SVG image, use AddImageAlternate

    Syntax

    Unit: FlexCel.XlsAdapter

    procedure TXlsBaseChart.AddImage(const data: TBytes; imageProperties: IImageProperties); overload;

    Parameters

    <-> Parameter Type Description
    const data TBytes Image data.
    imageProperties IImageProperties Image Properties.

    See also

    • TXlsBaseChart

    TXlsBaseChart.AddImage(TStream, IImageProperties)

    Adds an image to the active sheet. Note that for SVG images, xlsx files store both a PNG and SVG image. To enter an SVG image, use AddImageAlternate

    Syntax

    Unit: FlexCel.XlsAdapter

    procedure TXlsBaseChart.AddImage(const aStream: TStream; imageProperties: IImageProperties); overload;

    Parameters

    <-> Parameter Type Description
    const aStream TStream Stream containing the image data.
    imageProperties IImageProperties Placement and other properties of the image.

    See also

    • TXlsBaseChart

    TXlsBaseChart.AddImage(string, IImageProperties)

    Adds an image to the active sheet. Note that for SVG images, xlsx files store both a PNG and SVG image. To enter an SVG image, use AddImageAlternate

    Syntax

    Unit: FlexCel.XlsAdapter

    procedure TXlsBaseChart.AddImage(const fileName: string; imageProperties: IImageProperties); overload;

    Parameters

    <-> Parameter Type Description
    const fileName string Name of the file in disk containing the image data.
    imageProperties IImageProperties Placement and other properties of the image.

    See also

    • TXlsBaseChart

    TXlsBaseChart.AddImage(TBytes, TXlsImgType, IImageProperties)

    Adds an image to the active sheet. Note that for SVG images, xlsx files store both a PNG and SVG image. To enter an SVG image, use AddImageAlternate

    Syntax

    Unit: FlexCel.XlsAdapter

    procedure TXlsBaseChart.AddImage(const data: TBytes; const imageType: TXlsImgType; imageProperties: IImageProperties); overload;

    Parameters

    <-> Parameter Type Description
    const data TBytes byte array with the image data.
    const imageType TXlsImgType Type of image you are inserting (bmp, jpg, etc).
    imageProperties IImageProperties Placement and other properties of the image.

    See also

    • TXlsBaseChart

    TXlsBaseChart.AddImage(TStream, TXlsImgType, IImageProperties)

    Adds an image to the active sheet. Note that for SVG images, xlsx files store both a PNG and SVG image. To enter an SVG image, use AddImageAlternate

    Syntax

    Unit: FlexCel.XlsAdapter

    procedure TXlsBaseChart.AddImage(const aStream: TStream; const imageType: TXlsImgType; imageProperties: IImageProperties); overload;

    Parameters

    <-> Parameter Type Description
    const aStream TStream Stream containing the image data.
    const imageType TXlsImgType Type of image you are inserting (bmp, jpg, etc).
    imageProperties IImageProperties Placement and other properties of the image.

    See also

    • TXlsBaseChart
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com