Table of Contents

ExcelChart.AddImage Method

Overloads

ExcelChart.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

ExcelChart.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

ExcelChart.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

ExcelChart.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

ExcelChart.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

ExcelChart.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