[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.AddPictureInPixel

AddPictureInPixel Method

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

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

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

The picture name.

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 picture relative to the upper-left corner of the document.

double top

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

double width

The width of the picture, in pixels.

double height

The height of the picture, in pixels.

Returns
Type Description
IShape

The IShape object.

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

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

Declaration
IShape 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 IShape
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 picture relative to the upper-left corner of the document.

double top

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

double width

The width of the picture, in pixels.

double height

The height of the picture, in pixels.

Returns
Type Description
IShape

The IShape object.

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

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

Declaration
IShape 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 IShape
Parameters
Type Name Description
Stream stream

The stream from which the object is to be created.

ImageType type

Specifies the type of picture to create.

double left

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

double top

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

double width

The width of the picture, in pixels.

double height

The height of the picture, in pixels.

Returns
Type Description
IShape

The IShape object.

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

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

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

The picture name.

Stream stream

The stream from which the object is to be created.

ImageType type

Specifies the type of picture to create.

double left

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

double top

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

double width

The width of the picture, in pixels.

double height

The height of the picture, in pixels.

Returns
Type Description
IShape

The IShape object.