Search Results for

    Show / Hide Table of Contents

    ExcelFile.SetImageAlternate Method

    Sets the image data and / or image properties of an existing image. Currently this method is only needed for SVG images, since SVG images are stored as both PNG and SVG inside the xlsx file. This method allows you to supply both images.

    Syntax

    Namespace: FlexCel.Core

    public abstract void SetImageAlternate(Int32 imageIndex, Byte[] PNGData, Boolean usesObjectIndex, String objectPath, TSVGBlip aSVGBlip)

    Parameters

    <-> Parameter Type Description
    imageIndex Int32 Index of the image on the sheet array (1-based)
    PNGData Byte[] Image data for the PNG image that is used as a backup for the SVG image. This data must be in PNG file format.
    usesObjectIndex Boolean If false (the default) then imageIndex is an index to the list of images.
    When true imageIndex is an index to the list of all objects in the sheet. When you have the object id, you can avoid calling ObjectIndexToImageIndex which is a slow method, by setting this parameter to true.
    objectPath String Path to the object, when the object is grouped with others. This parameter only has meaning if usesObjectIndex is true.

    If it is "absolute"(it starts with "\"), then the path includes the objectIndex, and the objectIndex is not used. An object path of "\1\2\3" is exactly the same as using objectIndex = 1 and objectPath = "2\3"
    aSVGBlip TSVGBlip Image data for the SVG image

    See also

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