[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.AddPictureInPixel

AddPictureInPixel Method

AddPictureInPixel(string, string, double, double, double, double)

从现有文件创建图片。返回表示新图片的IShape 对象。

Declaration
IShape AddPictureInPixel(string name, string filename, double left, double top, double width, double height)
Parameters
Type Name Description
string name

图片名称。

string filename

要从中创建对象的文件。

double left

图片相对于文档左上角的左上角位置(以像素为单位)。

double top

图片相对于文档顶部的左上角位置(以像素为单位)。

double width

图片的宽度,以像素为单位。

double height

图片的高度,以像素为单位。

Returns
Type Description
IShape

IShape 对象。

AddPictureInPixel(string, double, double, double, double)

从现有文件创建图片。返回表示新图片的IShape 对象。

Declaration
IShape AddPictureInPixel(string filename, double left, double top, double width, double height)
Parameters
Type Name Description
string filename

要从中创建对象的文件。

double left

图片相对于文档左上角的左上角位置(以像素为单位)。

double top

图片相对于文档顶部的左上角位置(以像素为单位)。

double width

图片的宽度,以像素为单位。

double height

图片的高度,以像素为单位。

Returns
Type Description
IShape

IShape 对象。

AddPictureInPixel(Stream, ImageType, double, double, double, double)

从现有流创建图片。返回表示新图片的IShape 对象。

Declaration
IShape AddPictureInPixel(Stream stream, ImageType type, double left, double top, double width, double height)
Parameters
Type Name Description
Stream stream

要从中创建对象的流。

ImageType type

指定要创建的图片类型。

double left

图片相对于文档左上角的左上角位置(以像素为单位)。

double top

图片相对于文档顶部的左上角位置(以像素为单位)。

double width

图片的宽度,以像素为单位。

double height

图片的高度,以像素为单位。

Returns
Type Description
IShape

IShape 对象。

AddPictureInPixel(string, Stream, ImageType, double, double, double, double)

从现有流创建图片。返回表示新图片的IShape 对象。

Declaration
IShape AddPictureInPixel(string name, Stream stream, ImageType type, double left, double top, double width, double height)
Parameters
Type Name Description
string name

图片名称。

Stream stream

要从中创建对象的流。

ImageType type

指定要创建的图片类型。

double left

图片相对于文档左上角的左上角位置(以像素为单位)。

double top

图片相对于文档顶部的左上角位置(以像素为单位)。

double width

图片的宽度,以像素为单位。

double height

图片的高度,以像素为单位。

Returns
Type Description
IShape

IShape 对象。