[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IBackgroundPictures.AddPictureInPixel

AddPictureInPixel Method

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

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

Declaration
IBackgroundPicture 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
IBackgroundPicture

IBackgroundPicture 对象。

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

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

Declaration
IBackgroundPicture 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
IBackgroundPicture

IBackgroundPicture 对象。