NativeExcel for .Net Developer's Reference

IShapes.AddPicture Method

Creates a picture from the specified file, stream or Bitmap object. Returns a IPicture interface that represents the new picture.

Overload List

Creates a picture from the specified existing Bitmap object. Returns a IPicture interface that represents the new picture.

[Visual Basic] Function AddPicture(ByVal Bitmap) As IPicture
[C#] IPicture AddPicture(Bitmap);
[C++] IPicture* AddPicture(Bitmap*);
[JScript] function AddPicture(Bitmap): IPicture;

Creates a picture from the specified data stream.. Returns a IPicture interface that represents the new picture.

[Visual Basic] Function AddPicture(ByVal Stream) As IPicture
[C#] IPicture AddPicture(Stream);
[C++] IPicture* AddPicture(Stream*);
[JScript] function AddPicture(Stream): IPicture;

Creates a picture from the specified file. Returns a IPicture interface that represents the new picture.

[Visual Basic] Function AddPicture(ByVal String) As IPicture
[C#] IPicture AddPicture(string);
[C++] IPicture* AddPicture(String*);
[JScript] function AddPicture(String): IPicture;

See Also

IShapes Interface | NativeExcel Namespace