Search Results for

    Show / Hide Table of Contents

    IExcelChart.AddImage Method

    Overloads

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

    IExcelChart.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 IEmbeddedObjects.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.Core

    procedure IExcelChart.AddImage(const img: TUIImage; imageProperties: IImageProperties); overload; virtual; abstract;

    Parameters

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

    See also

    • IExcelChart

    IExcelChart.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 IEmbeddedObjects.AddImageAlternate

    Syntax

    Unit: FlexCel.Core

    procedure IExcelChart.AddImage(const data: TBytes; imageProperties: IImageProperties); overload; virtual; abstract;

    Parameters

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

    See also

    • IExcelChart

    IExcelChart.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 IEmbeddedObjects.AddImageAlternate

    Syntax

    Unit: FlexCel.Core

    procedure IExcelChart.AddImage(const aStream: TStream; imageProperties: IImageProperties); overload; virtual; abstract;

    Parameters

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

    See also

    • IExcelChart

    IExcelChart.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 IEmbeddedObjects.AddImageAlternate

    Syntax

    Unit: FlexCel.Core

    procedure IExcelChart.AddImage(const fileName: string; imageProperties: IImageProperties); overload; virtual; abstract;

    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

    • IExcelChart

    IExcelChart.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 IEmbeddedObjects.AddImageAlternate

    Syntax

    Unit: FlexCel.Core

    procedure IExcelChart.AddImage(const data: TBytes; const imageType: TXlsImgType; imageProperties: IImageProperties); overload; virtual; abstract;

    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

    • IExcelChart

    IExcelChart.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 IEmbeddedObjects.AddImageAlternate

    Syntax

    Unit: FlexCel.Core

    procedure IExcelChart.AddImage(const aStream: TStream; const imageType: TXlsImgType; imageProperties: IImageProperties); overload; virtual; abstract;

    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

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