[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IBackgroundPictures.AddPictureInPixel

AddPictureInPixel Method

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

Creates a background picture from an existing file. Returns the IBackgroundPicture object that represents the new background picture.

Declaration
IBackgroundPicture AddPictureInPixel(string filename, double left, double top, double width, double height)
Function AddPictureInPixel(filename As String, left As Double, top As Double, width As Double, height As Double) As IBackgroundPicture
Parameters
Type Name Description
string filename

The file from which the object is to be created

double left

The position (in pixels) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.

double top

The position (in pixels) of the upper-left corner of the destination rectangle relative to the top of the document.

double width

The width of destination rectangle, in pixels.

double height

The height of destination rectangle, in pixels.

Returns
Type Description
IBackgroundPicture

The IBackgroundPicture object.

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

Creates a background picture from an existing stream. Returns the IBackgroundPicture object that represents the new background picture.

Declaration
IBackgroundPicture AddPictureInPixel(Stream stream, ImageType type, double left, double top, double width, double height)
Function AddPictureInPixel(stream As Stream, type As ImageType, left As Double, top As Double, width As Double, height As Double) As IBackgroundPicture
Parameters
Type Name Description
Stream stream

The stream from which the object is to be created.

ImageType type

Specifies the type of background picture to create.

double left

The position (in pixels) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.

double top

The position (in pixels) of the upper-left corner of the destination rectangle relative to the top of the document.

double width

The width of destination rectangle, in pixels.

double height

The height of destination rectangle, in pixels.

Returns
Type Description
IBackgroundPicture

The IBackgroundPicture object.