Search Results for

    Show / Hide Table of Contents

    ExcelFile.AddImage Method

    Overloads

    • ExcelFile.AddImage(TUIImage, TImageProperties)
    • ExcelFile.AddImage(Byte[], TImageProperties)
    • ExcelFile.AddImage(Stream, TImageProperties)
    • ExcelFile.AddImage(String, TImageProperties)
    • ExcelFile.AddImage(Byte[], TXlsImgType, TImageProperties)
    • ExcelFile.AddImage(Stream, TXlsImgType, TImageProperties)
    • ExcelFile.AddImage(Int32, Int32, TUIImage)

    ExcelFile.AddImage(TUIImage, TImageProperties)

    Adds a new image to the active sheet. If you don't have the image already created, prefer using AddImage(Stream, TImageProperties), 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(Stream, TImageProperties)

    Syntax

    Namespace: FlexCel.Core

    public void AddImage(TUIImage img, TImageProperties imageProperties)

    Parameters

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

    See also

    • ExcelFile

    ExcelFile.AddImage(Byte[], TImageProperties)

    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

    Namespace: FlexCel.Core

    public void AddImage(Byte[] data, TImageProperties imageProperties)

    Parameters

    <-> Parameter Type Description
    data Byte[] Image data.
    imageProperties TImageProperties Image Properties.

    See also

    • ExcelFile

    ExcelFile.AddImage(Stream, TImageProperties)

    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

    Namespace: FlexCel.Core

    public void AddImage(Stream aStream, TImageProperties imageProperties)

    Parameters

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

    See also

    • ExcelFile

    ExcelFile.AddImage(String, TImageProperties)

    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

    Namespace: FlexCel.Core

    public void AddImage(String fileName, TImageProperties imageProperties)

    Parameters

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

    See also

    • ExcelFile

    ExcelFile.AddImage(Byte[], TXlsImgType, TImageProperties)

    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

    Namespace: FlexCel.Core

    public abstract void AddImage(Byte[] data, TXlsImgType imageType, TImageProperties imageProperties)

    Parameters

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

    See also

    • ExcelFile

    ExcelFile.AddImage(Stream, TXlsImgType, TImageProperties)

    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

    Namespace: FlexCel.Core

    public void AddImage(Stream aStream, TXlsImgType imageType, TImageProperties imageProperties)

    Parameters

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

    See also

    • ExcelFile

    ExcelFile.AddImage(Int32, Int32, TUIImage)

    Adds a new image to the active sheet. If you don't have the image already created, prefer using AddImage(Stream, TImageProperties), 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(Stream, TImageProperties)

    Syntax

    Namespace: FlexCel.Core

    public void AddImage(Int32 row, Int32 col, TUIImage img)

    Parameters

    <-> Parameter Type Description
    row Int32 Row Index (1 based)
    col Int32 Column Index (1 based)
    img TUIImage Image to insert.

    See also

    • ExcelFile
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com