Click or drag to resize

IShapes AddPicture Method (Image, String, ImageFormatType)

Adds new image to the collection.

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
IPictureShape AddPicture(
	Image image,
	string pictureName,
	ImageFormatType imageFormat
)

Parameters

image
Type: System.Drawing Image
Image to add.
pictureName
Type: System String
File name with the image.
imageFormat
Type: Spire.Xls ImageFormatType
Image format to use for picture storing.

Return Value

Type: IPictureShape
Newly created picture shape.
See Also