Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel.Drawing Namespace / IBackgroundPictures Interface / AddPictureInPixel Method / AddPictureInPixel(String,Double,Double,Double,Double) Method
The file from which the object is to be created
The position (in pixels) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.
The position (in pixels) of the upper-left corner of the destination rectangle relative to the top of the document.
The width of destination rectangle, in pixels.
The height of destination rectangle, in pixels.
In This Topic
    AddPictureInPixel(String,Double,Double,Double,Double) Method
    In This Topic
    Creates a background picture from an existing file. Returns the IBackgroundPicture object that represents the new background picture.
    Syntax
    IBackgroundPicture AddPictureInPixel( 
       System.string filename,
       System.double left,
       System.double top,
       System.double width,
       System.double height
    )

    Parameters

    filename
    The file from which the object is to be created
    left
    The position (in pixels) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.
    top
    The position (in pixels) of the upper-left corner of the destination rectangle relative to the top of the document.
    width
    The width of destination rectangle, in pixels.
    height
    The height of destination rectangle, in pixels.

    Return Value

    The IBackgroundPicture object.
    See Also